diff options
author | michelou <michelou@epfl.ch> | 2007-06-14 15:58:18 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-06-14 15:58:18 +0000 |
commit | 40c6ed3501ea1e66aed907f466b2c66ea5eae32a (patch) | |
tree | 7907b77bb3bf313c9c74e11d0b753ebc6fbeccbd | |
parent | 4b7298f02fb842ed6b37cd3e1451e9bfe9fbd012 (diff) | |
download | scala-40c6ed3501ea1e66aed907f466b2c66ea5eae32a.tar.gz scala-40c6ed3501ea1e66aed907f466b2c66ea5eae32a.tar.bz2 scala-40c6ed3501ea1e66aed907f466b2c66ea5eae32a.zip |
corrected another typo
-rw-r--r-- | src/library/scala/Console.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/Console.scala b/src/library/scala/Console.scala index 64ab6d2e69..5822c37dc9 100644 --- a/src/library/scala/Console.scala +++ b/src/library/scala/Console.scala @@ -12,7 +12,7 @@ package scala import java.io.{BufferedReader, InputStream, InputStreamReader, - OutputStream, Reader} + OutputStream, PrintStream, Reader} import java.text.MessageFormat import scala.util.DynamicVariable @@ -70,7 +70,7 @@ object Console { * * @param out the new output stream. */ - def setOut(out: PrintStream): Unit = outVar.value = out + def setOut(out: PrintStream) { outVar.value = out } /** Set the default output stream for the duration * of execution of one thunk. @@ -149,7 +149,7 @@ object Console { * output (i.e. output not terminated by a new line character) has * to be made visible on the terminal. */ - def flush(): Unit = out.flush() + def flush() { out.flush() } /** Print a new line character on the terminal. */ @@ -179,7 +179,7 @@ object Console { * @param args the parameters used to instantiate the format. * @throws java.lang.IllegalArgumentException */ - def printf(text: String, args: Any*): Unit = format(text, args: _*) + def printf(text: String, args: Any*) { format(text, args: _*) } /** * @see <a href="#printf(java.lang.String,scala.Any*)" |