Fix typo (an Result)

This commit is contained in:
Kevin Stock 2016-02-28 20:48:17 -05:00
parent d5558825b4
commit 7f59e069e8

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.