From 2d40516a8393db1f27bb822ff95c71a1a9c82537 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 13 Jun 2016 14:01:47 +0200 Subject: [PATCH] re-do deepaksirone's fix on the actual source file --- src/part15.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/part15.rs b/src/part15.rs index f60a481..6c99f4d 100644 --- a/src/part15.rs +++ b/src/part15.rs @@ -100,7 +100,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. //@ ## `RwLock` -- 2.30.2