about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2016-04-06 12:12:08 -0700
committerSteve Klabnik <steve@steveklabnik.com>2016-04-06 12:12:08 -0700
commitfce59015074ce49d52c3b22a3e40d6da13f124a4 (patch)
tree7587c81d7e0490747c6107ec7e639ebacbe30fad
parent9ce61702b365cca4099739e5c310627366e73bb3 (diff)
parenta2f6d294202764e3d951054b42955c568e3a306b (diff)
downloadrust-fce59015074ce49d52c3b22a3e40d6da13f124a4.tar.gz
rust-fce59015074ce49d52c3b22a3e40d6da13f124a4.zip
Rollup merge of #32679 - tclfs:patch-1, r=steveklabnik
Remove error description of `move`

(1) `x` can be used in main() after the call to spawn(). Because the variables follow normal move semantics, though the keyword `move` is used, and i32 implements `Copy`.
(2) I remove this sentence because the previous sentence gives the referrence to `move closures`, and more description of `move` may be redundant.
-rw-r--r--src/doc/book/concurrency.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/doc/book/concurrency.md b/src/doc/book/concurrency.md
index 82d2de7e3bf..8f1a0b50245 100644
--- a/src/doc/book/concurrency.md
+++ b/src/doc/book/concurrency.md
@@ -127,9 +127,7 @@ thread may outlive the scope of `x`, leading to a dangling pointer.
 
 To fix this, we use a `move` closure as mentioned in the error message. `move`
 closures are explained in depth [here](closures.html#move-closures); basically
-they move variables from their environment into themselves. This means that `x`
-is now owned by the closure, and cannot be used in `main()` after the call to
-`spawn()`.
+they move variables from their environment into themselves.
 
 ```rust
 use std::thread;