diff options
author | michelou <michelou@epfl.ch> | 2007-07-23 12:19:46 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-07-23 12:19:46 +0000 |
commit | 08a42368c0931dea170b7320cc1bc5389a275548 (patch) | |
tree | 5f1df0a7bd60bf3d4e0849b96c49583026d3b3d8 /src/library | |
parent | 2ec28d164c1c0f94e8e340f4fbf8045d2ab6520c (diff) | |
download | scala-08a42368c0931dea170b7320cc1bc5389a275548.tar.gz scala-08a42368c0931dea170b7320cc1bc5389a275548.tar.bz2 scala-08a42368c0931dea170b7320cc1bc5389a275548.zip |
removed some more type aliases
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/concurrent/pilib.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/concurrent/pilib.scala b/src/library/scala/concurrent/pilib.scala index 7acfbc2728..93b742efa0 100644 --- a/src/library/scala/concurrent/pilib.scala +++ b/src/library/scala/concurrent/pilib.scala @@ -18,10 +18,10 @@ package scala.concurrent * example, the definition of a two-place buffer using the <code>pilib</code> * library looks like: * </p><pre> - * <b>def</b> Buffer[a](put: Chan[a], get: Chan[a]): unit = { - * <b>def</b> B0: unit = choice ( put * { x => B1(x) } ); - * <b>def</b> B1(x: a): unit = choice ( get(x) * B0, put * { y => B2(x, y) } ) - * <b>def</b> B2(x: a, y: a): unit = choice ( get(x) * B1(y) ) + * <b>def</b> Buffer[a](put: Chan[a], get: Chan[a]) { + * <b>def</b> B0 { choice ( put * { x => B1(x) } ) } + * <b>def</b> B1(x: a) { choice ( get(x) * B0, put * { y => B2(x, y) } ) } + * <b>def</b> B2(x: a, y: a) { choice ( get(x) * B1(y) ) } * B0 * } * </pre> |