From: Ralf Jung Date: Mon, 13 Jun 2016 11:59:43 +0000 (+0200) Subject: Merge pull request #12 from deepaksirone/fix_typo X-Git-Url: https://git.ralfj.de/rust-101.git/commitdiff_plain/53ea4d72d5db48b56a9cb81397c7302653c74d0b?hp=a0edb0ae866081958e5d6e2ec5a3579d2bb01085 Merge pull request #12 from deepaksirone/fix_typo Fix innter -> inner typo --- diff --git a/workspace/src/part15.rs b/workspace/src/part15.rs index 6982579..148f648 100644 --- a/workspace/src/part15.rs +++ b/workspace/src/part15.rs @@ -66,7 +66,7 @@ pub fn main() { // **Exercise 15.1**: Add an operation `compare_and_inc(&self, test: usize, by: usize)` that increments the counter by // `by` *only if* the current value is `test`. // -// **Exercise 15.2**: Rather than panicking in case the lock is poisoned, we can use `into_innter` on the error to recover +// **Exercise 15.2**: Rather than panicking in case the lock is poisoned, we can use `into_inner` on the error to recover // the data inside the lock. Change the code above to do that. Try using `unwrap_or_else` for this job.