diff options
Diffstat (limited to 'src/library/scala/StringContext.scala')
-rw-r--r-- | src/library/scala/StringContext.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/StringContext.scala b/src/library/scala/StringContext.scala index 1f0b4c766e..6116547aa2 100644 --- a/src/library/scala/StringContext.scala +++ b/src/library/scala/StringContext.scala @@ -43,7 +43,7 @@ case class StringContext(parts: String*) { * that does not start a valid escape sequence. */ def s(args: Any*) = { - checkLengths(args) + checkLengths(args: _*) val pi = parts.iterator val ai = args.iterator val bldr = new java.lang.StringBuilder(treatEscapes(pi.next)) @@ -83,7 +83,7 @@ case class StringContext(parts: String*) { * format specifier `%s` and adding a corresponding argument string `"%"`. */ def f(args: Any*) = { - checkLengths(args) + checkLengths(args: _*) val pi = parts.iterator val ai = args.iterator val bldr = new java.lang.StringBuilder |