From 7f59e069e862277f30ce983661cdd4481039907d Mon Sep 17 00:00:00 2001 From: Kevin Stock Date: Sun, 28 Feb 2016 20:48:17 -0500 Subject: [PATCH] Fix typo (an Result) --- src/doc/book/concurrency.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/book/concurrency.md b/src/doc/book/concurrency.md index 752c097210243..30e4ad7ba5b12 100644 --- a/src/doc/book/concurrency.md +++ b/src/doc/book/concurrency.md @@ -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`, and because this is just an example, we `unwrap()` +it returns a `Result`, 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.