diff options
author | Matthias Zenger <mzenger@gmail.com> | 2004-02-10 21:49:50 +0000 |
---|---|---|
committer | Matthias Zenger <mzenger@gmail.com> | 2004-02-10 21:49:50 +0000 |
commit | 466ef4d1215d9274f70d83a06a9f87a58b778435 (patch) | |
tree | b48f08ceb0d3f65cfcedebc7d44569eeb94e133a /sources/examples/boundedbuffer.scala | |
parent | 3a657c3f268dbbb33925c270d9b7cc9b19ac0290 (diff) | |
download | scala-466ef4d1215d9274f70d83a06a9f87a58b778435.tar.gz scala-466ef4d1215d9274f70d83a06a9f87a58b778435.tar.bz2 scala-466ef4d1215d9274f70d83a06a9f87a58b778435.zip |
- Adapted examples to the new syntax.
Diffstat (limited to 'sources/examples/boundedbuffer.scala')
-rw-r--r-- | sources/examples/boundedbuffer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/examples/boundedbuffer.scala b/sources/examples/boundedbuffer.scala index 06ecec9d9a..e4271e7662 100644 --- a/sources/examples/boundedbuffer.scala +++ b/sources/examples/boundedbuffer.scala @@ -5,7 +5,7 @@ object boundedbuffer { import concurrent.ops._; class BoundedBuffer[a](N: Int) { - var in = 0, out = 0, n = 0; + var in, out, n = 0; val elems = new Array[a](N); def await(def cond: Boolean) = while (!cond) { wait() } |