Skip to content

Commit f01b8f5

Browse files
authored
Rollup merge of #107452 - y21:get-mut-unchecked-typo, r=Mark-Simulacrum
Fix typo in `{Rc, Arc}::get_mut_unchecked` docs Just a correction in the documentation of `{Rc, Arc}::get_mut_unchecked`.
2 parents d94698c + 61b18b5 commit f01b8f5

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)