summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2016-03-23 14:39:44 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2016-03-23 14:39:44 -0700
commit5574c7278e4b6687ed61aa62c1694a1adda1ab24 (patch)
tree7625b0201e9fa5a1e60627da7840bd157025a720
parent1802aa4eb22939d79f1cab67def5013025f24939 (diff)
parent7479a44c51f311964d3d0af0fee6a3a98f956297 (diff)
downloadscala-5574c7278e4b6687ed61aa62c1694a1adda1ab24.tar.gz
scala-5574c7278e4b6687ed61aa62c1694a1adda1ab24.tar.bz2
scala-5574c7278e4b6687ed61aa62c1694a1adda1ab24.zip
Merge pull request #5051 from kmizu/improve-api-docs
Improve documentation of `GenSeqLike#length`
-rw-r--r--src/library/scala/collection/GenSeqLike.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library/scala/collection/GenSeqLike.scala b/src/library/scala/collection/GenSeqLike.scala
index be1da1660a..405d8d7e57 100644
--- a/src/library/scala/collection/GenSeqLike.scala
+++ b/src/library/scala/collection/GenSeqLike.scala
@@ -58,6 +58,7 @@ trait GenSeqLike[+A, +Repr] extends Any with GenIterableLike[A, Repr] with Equal
* Note: `xs.length` and `xs.size` yield the same result.
*
* @return the number of elements in this $coll.
+ * @throws IllegalArgumentException if the length of the sequence cannot be represented in an `Int`, for example, `(-1 to Int.MaxValue).length`.
*/
def length: Int