diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-09-04 10:43:56 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-09-04 10:43:56 -0700 |
commit | 3041fc5fe3b36e618cd0a4b2d909c219050a5c3f (patch) | |
tree | f42eaea2612fe1cf5ce96dbf18805c4ee7d67a97 | |
parent | 39f4919f8da3ebdb0aec18d1dfdec83c97e741d7 (diff) | |
parent | ff888f75dcb80da6570749c1c348e5feb310af7c (diff) | |
download | scala-3041fc5fe3b36e618cd0a4b2d909c219050a5c3f.tar.gz scala-3041fc5fe3b36e618cd0a4b2d909c219050a5c3f.tar.bz2 scala-3041fc5fe3b36e618cd0a4b2d909c219050a5c3f.zip |
Merge pull request #1244 from dgruntz/2.10.x
Fixes typos in the ScalaDoc of StringContext
-rw-r--r-- | src/library/scala/StringContext.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/StringContext.scala b/src/library/scala/StringContext.scala index 723d95a499..453f29d9e6 100644 --- a/src/library/scala/StringContext.scala +++ b/src/library/scala/StringContext.scala @@ -19,7 +19,7 @@ case class StringContext(parts: String*) { import StringContext._ - /** Checks that the given arguments `args` number one less than the number + /** Checks that the length of the given argument `args` is one less than the number * of `parts` supplied to the enclosing `StringContext`. * @param `args` The arguments to be checked. * @throws An `IllegalArgumentException` if this is not the case. @@ -37,7 +37,7 @@ case class StringContext(parts: String*) { * @throws An `IllegalArgumentException` * if the number of `parts` in the enclosing `StringContext` does not exceed * the number of arguments `arg` by exactly 1. - * @throws A `StringContext.InvalidEscapeException` if if a `parts` string contains a backslash (`\`) character + * @throws A `StringContext.InvalidEscapeException` if a `parts` string contains a backslash (`\`) character * that does not start a valid escape sequence. */ def s(args: Any*): String = standardInterpolator(treatEscapes, args) @@ -51,7 +51,7 @@ case class StringContext(parts: String*) { * @throws An `IllegalArgumentException` * if the number of `parts` in the enclosing `StringContext` does not exceed * the number of arguments `arg` by exactly 1. - * @throws A `StringContext.InvalidEscapeException` if if a `parts` string contains a backslash (`\`) character + * @throws A `StringContext.InvalidEscapeException` if a `parts` string contains a backslash (`\`) character * that does not start a valid escape sequence. */ def raw(args: Any*): String = standardInterpolator(identity, args) @@ -102,7 +102,7 @@ case class StringContext(parts: String*) { object StringContext { - /** An exception that is thrown if a string contains a backslash (`\`) character that + /** An exception that is thrown if a string contains a backslash (`\`) character * that does not start a valid escape sequence. * @param str The offending string * @param idx The index of the offending backslash character in `str`. |