Skip to content

Commit a506ed0

Browse files
janekdblrytz
authored andcommitted
Correct off-by-one error in Product documentation (scala#5148)
1 parent 1de4fff commit a506ed0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/scala/Product.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package scala
1919
*/
2020
trait Product extends Any with Equals {
2121
/** The n^th^ element of this product, 0-based. In other words, for a
22-
* product `A(x,,1,,, ..., x,,k,,)`, returns `x,,(n+1),,` where `0 < n < k`.
22+
* product `A(x,,1,,, ..., x,,k,,)`, returns `x,,(n+1),,` where `0 <= n < k`.
2323
*
2424
* @param n the index of the element to return
2525
* @throws IndexOutOfBoundsException

0 commit comments

Comments
 (0)