X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=library%2Falloc%2Fsrc%2Fsync.rs;h=f20486ca9e4dbf792c4a44e996180d9156698a8d;hb=b651679d90bf3ed6f22c4fed53d330cf416eaf09;hp=9bc9182f7b53c3b170d0634ed959164f5b4204ea;hpb=9f82651a5fa4b1d96f55ce5507dd2aa204c7fb61;p=rust.git diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index 9bc9182f7b5..f20486ca9e4 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -1733,7 +1733,7 @@ pub fn get_mut(this: &mut Self) -> Option<&mut T> { /// # Safety /// /// If any other `Arc` or [`Weak`] pointers to the same allocation exist, then - /// they must be must not be dereferenced or have active borrows for the duration + /// they must not be dereferenced or have active borrows for the duration /// of the returned borrow, and their inner type must be exactly the same as the /// inner type of this Rc (including lifetimes). This is trivially the case if no /// such pointers exist, for example immediately after `Arc::new`.