]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo (an Result)
authorKevin Stock <kevin@kevinstock.org>
Mon, 29 Feb 2016 01:48:17 +0000 (20:48 -0500)
committerKevin Stock <kevin@kevinstock.org>
Mon, 29 Feb 2016 01:48:17 +0000 (20:48 -0500)
src/doc/book/concurrency.md

index 752c097210243e8d0d7d24349f21960842947959..30e4ad7ba5b1213c1e0ad92e54a3b04d02844256 100644 (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.