Skip to content

Commit

Permalink
Clarify API documentation of Gen.listOfN.
Browse files Browse the repository at this point in the history
Fixes #1059
  • Loading branch information
kneisslm committed Jul 9, 2024
1 parent 65475ee commit b010091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/org/scalacheck/Gen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +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
/** 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 b010091

Please sign in to comment.