diff options
-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) /** |