Skip to content

Commit 70013e1

Browse files
committed
Fix final dining philospher output to match actual program output.
Also clarifies that only one philosopher may eat at a time, not two.
1 parent 3150ddd commit 70013e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/doc/book/dining-philosophers.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -704,19 +704,19 @@ You’ll notice we can introduce a new binding to `table` here, and it will
704704
shadow the old one. This is often used so that you don’t need to come up with
705705
two unique names.
706706

707-
With this, our program works! Only two philosophers can eat at any one time,
708-
and so you’ll get some output like this:
707+
With this, our program works! Only one philosopher can eat at a time, and so
708+
you’ll get some output like this:
709709

710710
```text
711-
Gilles Deleuze is eating.
712711
Emma Goldman is eating.
713712
Emma Goldman is done eating.
713+
Karl Marx is eating.
714+
Karl Marx is done eating.
715+
Gilles Deleuze is eating.
714716
Gilles Deleuze is done eating.
715717
Judith Butler is eating.
716-
Karl Marx is eating.
717718
Judith Butler is done eating.
718719
Michel Foucault is eating.
719-
Karl Marx is done eating.
720720
Michel Foucault is done eating.
721721
```
722722

0 commit comments

Comments
 (0)