Skip to content

Commit 61b18b5

Browse files
committed
fix typo in {Rc, Arc}::get_mut_unchecked docs
1 parent 2a4b00b commit 61b18b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/alloc/src/rc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ impl<T: ?Sized> Rc<T> {
10921092
/// # Safety
10931093
///
10941094
/// If any other `Rc` or [`Weak`] pointers to the same allocation exist, then
1095-
/// they must be must not be dereferenced or have active borrows for the duration
1095+
/// they must not be dereferenced or have active borrows for the duration
10961096
/// of the returned borrow, and their inner type must be exactly the same as the
10971097
/// inner type of this Rc (including lifetimes). This is trivially the case if no
10981098
/// such pointers exist, for example immediately after `Rc::new`.

library/alloc/src/sync.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ impl<T: ?Sized> Arc<T> {
17331733
/// # Safety
17341734
///
17351735
/// If any other `Arc` or [`Weak`] pointers to the same allocation exist, then
1736-
/// they must be must not be dereferenced or have active borrows for the duration
1736+
/// they must not be dereferenced or have active borrows for the duration
17371737
/// of the returned borrow, and their inner type must be exactly the same as the
17381738
/// inner type of this Rc (including lifetimes). This is trivially the case if no
17391739
/// such pointers exist, for example immediately after `Arc::new`.

0 commit comments

Comments
 (0)