File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ use fmt;
40
40
/// among threads to ensure that a possibly invalid invariant is not witnessed.
41
41
///
42
42
/// A poisoned mutex, however, does not prevent all access to the underlying
43
- /// data. The `PoisonError` type has an `into_guard ` method which will return
43
+ /// data. The `PoisonError` type has an `into_inner ` method which will return
44
44
/// the guard that would have otherwise been returned on a successful lock. This
45
45
/// allows access to the data, despite the lock being poisoned.
46
46
///
@@ -105,7 +105,7 @@ use fmt;
105
105
/// // pattern matched on to return the underlying guard on both branches.
106
106
/// let mut guard = match lock.lock() {
107
107
/// Ok(guard) => guard,
108
- /// Err(poisoned) => poisoned.into_guard (),
108
+ /// Err(poisoned) => poisoned.into_inner (),
109
109
/// };
110
110
///
111
111
/// *guard += 1;
You can’t perform that action at this time.
0 commit comments