Skip to content

Commit

Permalink
Correct two small typos in the Dining Philosophers example.
Browse files Browse the repository at this point in the history
  • Loading branch information
WillEngler committed May 16, 2015
1 parent daaf715 commit d5394d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/trpl/dining-philosophers.md
Expand Up @@ -320,7 +320,7 @@ from the standard library, and so we need to `use` it.
We now print out two messages, with a `sleep_ms()` in the middle. This will
simulate the time it takes a philosopher to eat.

If you run this program, You should see each philosopher eat in turn:
If you run this program, you should see each philosopher eat in turn:

```text
Baruch Spinoza is eating.
Expand Down Expand Up @@ -480,7 +480,7 @@ struct Table {
}
```

This `Table` has an vector of `Mutex`es. A mutex is a way to control
This `Table` has a vector of `Mutex`es. A mutex is a way to control
concurrency: only one thread can access the contents at once. This is exactly
the property we need with our forks. We use an empty tuple, `()`, inside the
mutex, since we’re not actually going to use the value, just hold onto it.
Expand Down

0 comments on commit d5394d0

Please sign in to comment.