Skip to content

Commit 7f59e06

Browse files
committed
Fix typo (an Result)
1 parent d555882 commit 7f59e06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/concurrency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ thread::spawn(move || {
259259
```
260260

261261
First, we call `lock()`, which acquires the mutex's lock. Because this may fail,
262-
it returns an `Result<T, E>`, and because this is just an example, we `unwrap()`
262+
it returns a `Result<T, E>`, and because this is just an example, we `unwrap()`
263263
it to get a reference to the data. Real code would have more robust error handling
264264
here. We're then free to mutate it, since we have the lock.
265265

0 commit comments

Comments
 (0)