From b010091abba730271f8d5475d80ffc289370fc00 Mon Sep 17 00:00:00 2001 From: Martin Kneissl Date: Tue, 9 Jul 2024 15:50:21 +0200 Subject: [PATCH] Clarify API documentation of Gen.listOfN. Fixes #1059 --- core/shared/src/main/scala/org/scalacheck/Gen.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/shared/src/main/scala/org/scalacheck/Gen.scala b/core/shared/src/main/scala/org/scalacheck/Gen.scala index fc70d388..4036a95e 100644 --- a/core/shared/src/main/scala/org/scalacheck/Gen.scala +++ b/core/shared/src/main/scala/org/scalacheck/Gen.scala @@ -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)