about summary refs log tree commit diff
diff options
context:
space:
mode:
authorcarbotaniuman <41451839+carbotaniuman@users.noreply.github.com>2020-09-09 13:44:22 -0500
committercarbotaniuman <41451839+carbotaniuman@users.noreply.github.com>2020-09-09 13:44:22 -0500
commitbb57c9f91c920a8b1533fb92aa50be342e11f675 (patch)
tree9c50102aa2d458186e7b2587d56ee8de407132d3
parent8f43fa09893b664e4ceb4cc8c7815fa5ab20c10e (diff)
downloadrust-bb57c9f91c920a8b1533fb92aa50be342e11f675.tar.gz
rust-bb57c9f91c920a8b1533fb92aa50be342e11f675.zip
Format
-rw-r--r--library/alloc/src/rc.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs
index 43cf3fe6fb6..4821c8f5676 100644
--- a/library/alloc/src/rc.rs
+++ b/library/alloc/src/rc.rs
@@ -845,7 +845,7 @@ impl<T: ?Sized> Rc<T> {
     #[unstable(feature = "get_mut_unchecked", issue = "63292")]
     pub unsafe fn get_mut_unchecked(this: &mut Self) -> &mut T {
         // We are careful to *not* create a reference covering the "count" fields, as
-        // this would alias with reenterant access to the reference counts (e.g. by `Weak`).
+        // this would alias with concurrent access to the reference counts (e.g. by `Weak`).
         unsafe { &mut (*this.ptr.as_ptr()).value }
     }
 
@@ -2019,7 +2019,7 @@ impl<T: ?Sized> Drop for Weak<T> {
     /// ```
     fn drop(&mut self) {
         let inner = if let Some(inner) = self.inner() { inner } else { return };
-        
+
         inner.dec_weak();
         // the weak count starts at 1, and will only go to zero if all
         // the strong pointers have disappeared.
@@ -2144,7 +2144,7 @@ trait RcInnerPtr {
     }
 }
 
-impl <T: ?Sized> RcInnerPtr for RcBox<T> {
+impl<T: ?Sized> RcInnerPtr for RcBox<T> {
     fn weak_ref(&self) -> &Cell<usize> {
         &self.weak
     }