Skip to content

Commit

Permalink
Merge pull request #1061 from kneisslm/listOfN-scaladoc
Browse files Browse the repository at this point in the history
Clarify API documentation of Gen.listOfN.
  • Loading branch information
satorg committed Jul 11, 2024
2 parents 65475ee + a5932eb commit f8359cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/shared/src/main/scala/org/scalacheck/Gen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,7 @@ object Gen extends GenArities with GenVersionSpecific {
*/
def nonEmptyListOf[T](g: => Gen[T]) = nonEmptyBuildableOf[List[T], T](g)

/** Generates a list with at most the given number of elements. This method is equal to calling
* `containerOfN[List,T](n,g)`.
/** Generates a list with the given number of elements. This method is equal to calling `containerOfN[List,T](n,g)`.
*/
def listOfN[T](n: Int, g: Gen[T]) = buildableOfN[List[T], T](n, g)

Expand Down

0 comments on commit f8359cc

Please sign in to comment.