Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/2527'
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Dec 23, 2020
2 parents e54f703 + 44f9283 commit fc9ca86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ch16-03-shared-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit fc9ca86

Please sign in to comment.