summaryrefslogtreecommitdiff
path: root/docs/examples/pilib/rwlock.scala
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/pilib/rwlock.scala')
-rw-r--r--docs/examples/pilib/rwlock.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/pilib/rwlock.scala b/docs/examples/pilib/rwlock.scala
index 931f622f5a..bb1c26bdf2 100644
--- a/docs/examples/pilib/rwlock.scala
+++ b/docs/examples/pilib/rwlock.scala
@@ -250,7 +250,7 @@ object rwlock {
def endRead = er.send
def endWrite = ew.send
- private def Reading(nr: int, nw: int): unit =
+ private def Reading(nr: int, nw: int): unit =
if (nr == 0 && nw == 0)
choice (
sr * (x => Reading(1, 0)),
@@ -264,7 +264,7 @@ object rwlock {
choice (
sr * (x => Reading(nr + 1, 0)),
er * (x => Reading(nr - 1, 0)),
- ww * (x => Reading(nr, 1))
+ ww * (x => Reading(nr, 1))
)
else if (nr != 0 && nw != 0)
choice (