File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -201,11 +201,12 @@ impl<T> Arc<T> {
201
201
Arc { _ptr : unsafe { Shared :: new ( Box :: into_raw ( x) ) } }
202
202
}
203
203
204
- /// Unwraps the contained value if the `Arc<T>` has only one strong reference.
205
- /// This will succeed even if there are outstanding weak references.
204
+ /// Unwraps the contained value if the `Arc<T>` has exactly one strong reference.
206
205
///
207
206
/// Otherwise, an `Err` is returned with the same `Arc<T>`.
208
207
///
208
+ /// This will succeed even if there are outstanding weak references.
209
+ ///
209
210
/// # Examples
210
211
///
211
212
/// ```
Original file line number Diff line number Diff line change @@ -224,11 +224,12 @@ impl<T> Rc<T> {
224
224
}
225
225
}
226
226
227
- /// Unwraps the contained value if the `Rc<T>` has only one strong reference.
228
- /// This will succeed even if there are outstanding weak references.
227
+ /// Unwraps the contained value if the `Rc<T>` has exactly one strong reference.
229
228
///
230
229
/// Otherwise, an `Err` is returned with the same `Rc<T>`.
231
230
///
231
+ /// This will succeed even if there are outstanding weak references.
232
+ ///
232
233
/// # Examples
233
234
///
234
235
/// ```
You can’t perform that action at this time.
0 commit comments