diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 45a8012210417..67ae19079c8c2 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -212,7 +212,7 @@ impl Cell { } } - /// Gets a reference to the underlying `UnsafeCell`. + /// Returns a reference to the underlying `UnsafeCell`. /// /// # Unsafety /// @@ -439,7 +439,7 @@ impl RefCell { } } - /// Gets a reference to the underlying `UnsafeCell`. + /// Returns a reference to the underlying `UnsafeCell`. /// /// This can be used to circumvent `RefCell`'s safety checks. /// @@ -671,8 +671,8 @@ impl UnsafeCell { /// /// # Unsafety /// - /// This function is unsafe because there is no guarantee that this or other threads are - /// currently inspecting the inner value. + /// This function is unsafe because this thread or another thread may currently be + /// inspecting the inner value. /// /// # Examples ///