about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJames Mantooth <jimmantooth@gmail.com>2018-01-17 05:23:21 -0600
committerGitHub <noreply@github.com>2018-01-17 05:23:21 -0600
commitc2e26121dbf6f2ca08e772415b80bc2d80c0d952 (patch)
tree488c999c4174be2bc3ccc3a30584ffc110f32c39 /src
parentda569fa9ddf8369a9809184d43c600dc06bd4b4d (diff)
downloadrust-c2e26121dbf6f2ca08e772415b80bc2d80c0d952.tar.gz
rust-c2e26121dbf6f2ca08e772415b80bc2d80c0d952.zip
Punctuation and clarity fixes.
Diffstat (limited to 'src')
-rw-r--r--src/doc/unstable-book/src/language-features/generators.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/unstable-book/src/language-features/generators.md b/src/doc/unstable-book/src/language-features/generators.md
index 7a559a7bec8..e8e2132dca2 100644
--- a/src/doc/unstable-book/src/language-features/generators.md
+++ b/src/doc/unstable-book/src/language-features/generators.md
@@ -139,11 +139,11 @@ closure-like semantics. Namely:
   types and such.
 
 * Traits like `Send` and `Sync` are automatically implemented for a `Generator`
-  depending on the captured variables of the environment. Unlike closures though
+  depending on the captured variables of the environment. Unlike closures,
   generators also depend on variables live across suspension points. This means
   that although the ambient environment may be `Send` or `Sync`, the generator
   itself may not be due to internal variables live across `yield` points being
-  not-`Send` or not-`Sync`. Note, though, that generators, like closures, do
+  not-`Send` or not-`Sync`. Note that generators, like closures, do
   not implement traits like `Copy` or `Clone` automatically.
 
 * Whenever a generator is dropped it will drop all captured environment
@@ -155,7 +155,7 @@ lifted at a future date, the design is ongoing!
 
 ### Generators as state machines
 
-In the compiler generators are currently compiled as state machines. Each
+In the compiler, generators are currently compiled as state machines. Each
 `yield` expression will correspond to a different state that stores all live
 variables over that suspension point. Resumption of a generator will dispatch on
 the current state and then execute internally until a `yield` is reached, at