1
Fork 0

Auto merge of #31959 - teoryn:patch-4, r=Manishearth

This commit is contained in:
bors 2016-02-29 01:50:34 +00:00
commit 953f6c9cc9

View file

@ -259,7 +259,7 @@ thread::spawn(move || {
```
First, we call `lock()`, which acquires the mutex's lock. Because this may fail,
it returns an `Result<T, E>`, and because this is just an example, we `unwrap()`
it returns a `Result<T, E>`, and because this is just an example, we `unwrap()`
it to get a reference to the data. Real code would have more robust error handling
here. We're then free to mutate it, since we have the lock.