about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Engler <engler.will@gmail.com>2015-05-15 19:32:13 -0600
committerWill Engler <engler.will@gmail.com>2015-05-15 19:32:13 -0600
commitd5394d00d14335cf729aa87dfe6af77254633223 (patch)
tree0bbc5139c628f6d650c117131b19698dd70ac8f9
parentdaaf71553929a63d619d2a7337588fed1baf6bfe (diff)
downloadrust-d5394d00d14335cf729aa87dfe6af77254633223.tar.gz
rust-d5394d00d14335cf729aa87dfe6af77254633223.zip
Correct two small typos in the Dining Philosophers example.
-rw-r--r--src/doc/trpl/dining-philosophers.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/trpl/dining-philosophers.md b/src/doc/trpl/dining-philosophers.md
index b179c90ceb9..035f4de9da2 100644
--- a/src/doc/trpl/dining-philosophers.md
+++ b/src/doc/trpl/dining-philosophers.md
@@ -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.
@@ -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.