summaryrefslogtreecommitdiff
path: root/src/library/scala/Console.scala
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2007-02-06 16:06:34 +0000
committermihaylov <mihaylov@epfl.ch>2007-02-06 16:06:34 +0000
commitf54efe4dc3d13ffab28e6c1e7b0fced4b79eb8d0 (patch)
treeedc177727863228bfaa809ecb7c9dee89c6bc4fb /src/library/scala/Console.scala
parent89e9d67df8a1cfa075808da59238b20f406f7f51 (diff)
downloadscala-f54efe4dc3d13ffab28e6c1e7b0fced4b79eb8d0.tar.gz
scala-f54efe4dc3d13ffab28e6c1e7b0fced4b79eb8d0.tar.bz2
scala-f54efe4dc3d13ffab28e6c1e7b0fced4b79eb8d0.zip
Merged the dotnet-scala branch
Diffstat (limited to 'src/library/scala/Console.scala')
-rw-r--r--src/library/scala/Console.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/Console.scala b/src/library/scala/Console.scala
index 3c075e8193..488e091390 100644
--- a/src/library/scala/Console.scala
+++ b/src/library/scala/Console.scala
@@ -204,7 +204,7 @@ object Console {
*/
def readLine(text: String, args: Any*): String = {
format(text, args: _*)
- in.readLine()
+ readLine
}
@@ -212,7 +212,7 @@ object Console {
*
* @return the boolean value read from the terminal.
*/
- def readBoolean: Boolean = in.readLine().toLowerCase() match {
+ def readBoolean: Boolean = readLine.toLowerCase() match {
case "true" => true
case "t" => true
case "yes" => true
@@ -252,7 +252,7 @@ object Console {
* @return a list of all extracted values.
*/
def readf(format: String): List[Any] =
- textComponents(new MessageFormat(format).parse(in.readLine()))
+ textComponents(new MessageFormat(format).parse(readLine))
/** Read in some structured input, specified by a format specifier.
* Opposed to <code>readf</code>, this function only returns the