summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bogucki <janekdb@gmail.com>2016-05-11 20:56:19 +0100
committerLukas Rytz <lukas.rytz@typesafe.com>2016-05-11 21:56:19 +0200
commita506ed0b967fb145c49af6c2696a28790c3dbd1f (patch)
tree3baf53ac22362b4e35c7c8b99063e672ce478202
parent1de4fff089eaa6b280652dc8183a57162a8f2ad2 (diff)
downloadscala-a506ed0b967fb145c49af6c2696a28790c3dbd1f.tar.gz
scala-a506ed0b967fb145c49af6c2696a28790c3dbd1f.tar.bz2
scala-a506ed0b967fb145c49af6c2696a28790c3dbd1f.zip
Correct off-by-one error in Product documentation (#5148)
-rw-r--r--src/library/scala/Product.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Product.scala b/src/library/scala/Product.scala
index 9cd38ed148..f3a96fb333 100644
--- a/src/library/scala/Product.scala
+++ b/src/library/scala/Product.scala
@@ -19,7 +19,7 @@ package scala
*/
trait Product extends Any with Equals {
/** The n^th^ element of this product, 0-based. In other words, for a
- * product `A(x,,1,,, ..., x,,k,,)`, returns `x,,(n+1),,` where `0 < n < k`.
+ * product `A(x,,1,,, ..., x,,k,,)`, returns `x,,(n+1),,` where `0 <= n < k`.
*
* @param n the index of the element to return
* @throws IndexOutOfBoundsException