summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-06-14 15:58:18 +0000
committermichelou <michelou@epfl.ch>2007-06-14 15:58:18 +0000
commit40c6ed3501ea1e66aed907f466b2c66ea5eae32a (patch)
tree7907b77bb3bf313c9c74e11d0b753ebc6fbeccbd /src
parent4b7298f02fb842ed6b37cd3e1451e9bfe9fbd012 (diff)
downloadscala-40c6ed3501ea1e66aed907f466b2c66ea5eae32a.tar.gz
scala-40c6ed3501ea1e66aed907f466b2c66ea5eae32a.tar.bz2
scala-40c6ed3501ea1e66aed907f466b2c66ea5eae32a.zip
corrected another typo
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/Console.scala8
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*)"