File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -201,11 +201,12 @@ impl<T> Arc<T> {
201201 Arc { _ptr : unsafe { Shared :: new ( Box :: into_raw ( x) ) } }
202202 }
203203
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.
206205 ///
207206 /// Otherwise, an `Err` is returned with the same `Arc<T>`.
208207 ///
208+ /// This will succeed even if there are outstanding weak references.
209+ ///
209210 /// # Examples
210211 ///
211212 /// ```
Original file line number Diff line number Diff line change @@ -224,11 +224,12 @@ impl<T> Rc<T> {
224224 }
225225 }
226226
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.
229228 ///
230229 /// Otherwise, an `Err` is returned with the same `Rc<T>`.
231230 ///
231+ /// This will succeed even if there are outstanding weak references.
232+ ///
232233 /// # Examples
233234 ///
234235 /// ```
You can’t perform that action at this time.
0 commit comments