]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/book/src/ch16-03-shared-state.md
New upstream version 1.51.0+dfsg1
[rustc.git] / src / doc / book / src / ch16-03-shared-state.md
index 2c934ddb8c75dca82bbfd25a0841ef2865dd309a..8704423606e29ec3e608581706f53072042124d5 100644 (file)
@@ -134,9 +134,7 @@ multiple-ownership method we discussed in Chapter 15.
 In Chapter 15, we gave a value multiple owners by using the smart pointer
 `Rc<T>` to create a reference counted value. Let’s do the same here and see
 what happens. We’ll wrap the `Mutex<T>` in `Rc<T>` in Listing 16-14 and clone
-the `Rc<T>` before moving ownership to the thread. Now that we’ve seen the
-errors, we’ll also switch back to using the `for` loop, and we’ll keep the
-`move` keyword with the closure.
+the `Rc<T>` before moving ownership to the thread.
 
 <span class="filename">Filename: src/main.rs</span>