diff options
author | Jean-Remi Desjardins <jeanremi.desjardins@gmail.com> | 2013-06-06 17:52:59 -0600 |
---|---|---|
committer | Jean-Remi Desjardins <jeanremi.desjardins@gmail.com> | 2013-06-06 17:52:59 -0600 |
commit | 32ba1fc10e1c4c3b1f6fd7c9c816c6dc35fd4efa (patch) | |
tree | b59883b5ce851c3103343cbce860aac8e4759e76 | |
parent | 99cbeeb98ad7982811c1843ad84df58ee07a8e8f (diff) | |
download | scala-32ba1fc10e1c4c3b1f6fd7c9c816c6dc35fd4efa.tar.gz scala-32ba1fc10e1c4c3b1f6fd7c9c816c6dc35fd4efa.tar.bz2 scala-32ba1fc10e1c4c3b1f6fd7c9c816c6dc35fd4efa.zip |
Fix incorrectly documented exception of toBoolean method of String
-rw-r--r-- | src/library/scala/collection/immutable/StringLike.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/immutable/StringLike.scala b/src/library/scala/collection/immutable/StringLike.scala index 57c43ef90e..5a0d24ddd2 100644 --- a/src/library/scala/collection/immutable/StringLike.scala +++ b/src/library/scala/collection/immutable/StringLike.scala @@ -223,7 +223,7 @@ self => def r(groupNames: String*): Regex = new Regex(toString, groupNames: _*) /** - * @throws `java.lang.NumberFormatException` - If the string does not contain a parsable boolean. + * @throws `java.lang.IllegalArgumentException` - If the string does not contain a parsable boolean. */ def toBoolean: Boolean = parseBoolean(toString) /** |