Skip to content

Commit bb57c9f

Browse files
committed
Format
1 parent 8f43fa0 commit bb57c9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/alloc/src/rc.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ impl<T: ?Sized> Rc<T> {
845845
#[unstable(feature = "get_mut_unchecked", issue = "63292")]
846846
pub unsafe fn get_mut_unchecked(this: &mut Self) -> &mut T {
847847
// We are careful to *not* create a reference covering the "count" fields, as
848-
// this would alias with reenterant access to the reference counts (e.g. by `Weak`).
848+
// this would alias with concurrent access to the reference counts (e.g. by `Weak`).
849849
unsafe { &mut (*this.ptr.as_ptr()).value }
850850
}
851851

@@ -2019,7 +2019,7 @@ impl<T: ?Sized> Drop for Weak<T> {
20192019
/// ```
20202020
fn drop(&mut self) {
20212021
let inner = if let Some(inner) = self.inner() { inner } else { return };
2022-
2022+
20232023
inner.dec_weak();
20242024
// the weak count starts at 1, and will only go to zero if all
20252025
// the strong pointers have disappeared.
@@ -2144,7 +2144,7 @@ trait RcInnerPtr {
21442144
}
21452145
}
21462146

2147-
impl <T: ?Sized> RcInnerPtr for RcBox<T> {
2147+
impl<T: ?Sized> RcInnerPtr for RcBox<T> {
21482148
fn weak_ref(&self) -> &Cell<usize> {
21492149
&self.weak
21502150
}

0 commit comments

Comments
 (0)