summaryrefslogtreecommitdiff
path: root/sources/examples/boundedbuffer.scala
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-03-18 12:36:03 +0000
committerpaltherr <paltherr@epfl.ch>2003-03-18 12:36:03 +0000
commitc6ce203b92ccbeebdc8af5016e544768cb059937 (patch)
tree7af0eb240d1853bc4e9dce7d2df0073518bd68ec /sources/examples/boundedbuffer.scala
parent611eb370fa5ef8508ce27ffc27fe441b37fbb54a (diff)
downloadscala-c6ce203b92ccbeebdc8af5016e544768cb059937.tar.gz
scala-c6ce203b92ccbeebdc8af5016e544768cb059937.tar.bz2
scala-c6ce203b92ccbeebdc8af5016e544768cb059937.zip
- Fixed some minor errors
Diffstat (limited to 'sources/examples/boundedbuffer.scala')
-rw-r--r--sources/examples/boundedbuffer.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/examples/boundedbuffer.scala b/sources/examples/boundedbuffer.scala
index f308d0d472..6f71f72cf5 100644
--- a/sources/examples/boundedbuffer.scala
+++ b/sources/examples/boundedbuffer.scala
@@ -2,7 +2,7 @@ package examples;
import concurrent.ops._;
-class BoundedBuffer[a](N: Int) extends Monitor() with {
+class BoundedBuffer[a](N: Int) extends Monitor() {
var in = 0, out = 0, n = 0;
val elems = new Array[a](N);
@@ -27,4 +27,4 @@ module test {
def consumeString(ss: String) = System.out.println(ss);
spawn { while (True) { val ssss = produceString ; buf.put(ssss) } }
spawn { while (True) { val s = buf.get ; consumeString(s) } }
-} \ No newline at end of file
+}