projects
/
rust-101.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a0edb0a
)
Fix innter -> inner typo
author
Deepak Sirone
<deepaksirone94@gmail.com>
Mon, 13 Jun 2016 10:18:58 +0000
(15:48 +0530)
committer
Deepak Sirone
<deepaksirone94@gmail.com>
Mon, 13 Jun 2016 10:18:58 +0000
(15:48 +0530)
workspace/src/part15.rs
patch
|
blob
|
history
diff --git
a/workspace/src/part15.rs
b/workspace/src/part15.rs
index 6982579bad7b7570e158679e6af04f928c8594c8..148f64845c74afc7db39f8450955aab0c39ae2f1 100644
(file)
--- 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.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_inn
t
er` 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.
// the data inside the lock. Change the code above to do that. Try using `unwrap_or_else` for this job.