diff options
-rw-r--r-- | src/library/scala/Console.scala | 4 | ||||
-rw-r--r-- | src/library/scala/util/Fluid.scala | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/Console.scala b/src/library/scala/Console.scala index 79a3c586d8..007b805d1c 100644 --- a/src/library/scala/Console.scala +++ b/src/library/scala/Console.scala @@ -64,7 +64,7 @@ object Console { * * @param out the new output stream. */ - def setOut(out: PrintStream): Unit = outFluid.set(out) + def setOut(out: PrintStream): Unit = outFluid.value = out /** Set the default output stream for the duration * of execution of one thunk. @@ -99,7 +99,7 @@ object Console { * @param reader specifies the new input stream. */ def setIn(reader: Reader): Unit = { - inFluid.set(new BufferedReader(reader)) + inFluid.value = new BufferedReader(reader) } /** Set the default input stream for the duration diff --git a/src/library/scala/util/Fluid.scala b/src/library/scala/util/Fluid.scala index 2cabde350b..3858f21c26 100644 --- a/src/library/scala/util/Fluid.scala +++ b/src/library/scala/util/Fluid.scala @@ -68,7 +68,7 @@ class Fluid[T](init: T) { /** Change the currently bound value, discarding the old value. * Usually withValue() gives better semantics. */ - def set(newval: T) = { tl.set(newval) } + def value_=(newval: T) = { tl.set(newval) } override def toString: String = "Fluid(" + value +")" } |