From 5d782f24fcb339dfeb9250c329e99ad11983f89d Mon Sep 17 00:00:00 2001 From: Szabolcs Berecz Date: Fri, 20 Jan 2012 00:16:14 +0100 Subject: Closes SI-5066 readLine("%s", "prompt") printed "WrappedArray(prompt)" readLine("%s%s", "pro", "mpt") threw a MissingFormatArgumentException --- src/library/scala/Predef.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/library') diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala index b175fb9e1d..824e048e73 100644 --- a/src/library/scala/Predef.scala +++ b/src/library/scala/Predef.scala @@ -269,7 +269,7 @@ object Predef extends LowPriorityImplicits { def printf(text: String, xs: Any*) = Console.print(text.format(xs: _*)) def readLine(): String = Console.readLine() - def readLine(text: String, args: Any*) = Console.readLine(text, args) + def readLine(text: String, args: Any*) = Console.readLine(text, args: _*) def readBoolean() = Console.readBoolean() def readByte() = Console.readByte() def readShort() = Console.readShort() -- cgit v1.2.3