File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -719,8 +719,10 @@ impl<T: ?Sized> Rc<T> {
719
719
///
720
720
/// # Safety
721
721
///
722
- /// There must be no other `Rc` or [`Weak`] pointers to the same value.
723
- /// This is the case for example immediately after `Rc::new`.
722
+ /// Any other `Rc` or [`Weak`] pointers to the same value must not be dereferenced
723
+ /// for the duration of the returned borrow.
724
+ /// This is trivially the case if no such pointer exist,
725
+ /// for example immediately after `Rc::new`.
724
726
///
725
727
/// # Examples
726
728
///
Original file line number Diff line number Diff line change @@ -1104,8 +1104,10 @@ impl<T: ?Sized> Arc<T> {
1104
1104
///
1105
1105
/// # Safety
1106
1106
///
1107
- /// There must be no other `Arc` or [`Weak`] pointers to the same value.
1108
- /// This is the case for example immediately after `Rc::new`.
1107
+ /// Any other `Arc` or [`Weak`] pointers to the same value must not be dereferenced
1108
+ /// for the duration of the returned borrow.
1109
+ /// This is trivially the case if no such pointer exist,
1110
+ /// for example immediately after `Arc::new`.
1109
1111
///
1110
1112
/// # Examples
1111
1113
///
You can’t perform that action at this time.
0 commit comments