File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -845,7 +845,7 @@ impl<T: ?Sized> Rc<T> {
845
845
#[ unstable( feature = "get_mut_unchecked" , issue = "63292" ) ]
846
846
pub unsafe fn get_mut_unchecked ( this : & mut Self ) -> & mut T {
847
847
// 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`).
849
849
unsafe { & mut ( * this. ptr . as_ptr ( ) ) . value }
850
850
}
851
851
@@ -2019,7 +2019,7 @@ impl<T: ?Sized> Drop for Weak<T> {
2019
2019
/// ```
2020
2020
fn drop ( & mut self ) {
2021
2021
let inner = if let Some ( inner) = self . inner ( ) { inner } else { return } ;
2022
-
2022
+
2023
2023
inner. dec_weak ( ) ;
2024
2024
// the weak count starts at 1, and will only go to zero if all
2025
2025
// the strong pointers have disappeared.
@@ -2144,7 +2144,7 @@ trait RcInnerPtr {
2144
2144
}
2145
2145
}
2146
2146
2147
- impl < T : ?Sized > RcInnerPtr for RcBox < T > {
2147
+ impl < T : ?Sized > RcInnerPtr for RcBox < T > {
2148
2148
fn weak_ref ( & self ) -> & Cell < usize > {
2149
2149
& self . weak
2150
2150
}
You can’t perform that action at this time.
0 commit comments