about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNick Hamann <nick@wabbo.org>2015-05-22 19:32:02 -0500
committerNick Hamann <nick@wabbo.org>2015-05-22 19:32:02 -0500
commit0d80b2a0415e39a4b9421919d2b131f23e0d42de (patch)
tree47d82edaea25d9fb5ef0fff14e16611dd1ce03ad
parentc3d60aba6c86883c79055c1a3923d4db116b644e (diff)
downloadrust-0d80b2a0415e39a4b9421919d2b131f23e0d42de.tar.gz
rust-0d80b2a0415e39a4b9421919d2b131f23e0d42de.zip
docs: Improve descriptions for some methods in core::cell.
-rw-r--r--src/libcore/cell.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs
index 45a80122104..67ae19079c8 100644
--- a/src/libcore/cell.rs
+++ b/src/libcore/cell.rs
@@ -212,7 +212,7 @@ impl<T:Copy> Cell<T> {
         }
     }
 
-    /// Gets a reference to the underlying `UnsafeCell`.
+    /// Returns a reference to the underlying `UnsafeCell`.
     ///
     /// # Unsafety
     ///
@@ -439,7 +439,7 @@ impl<T: ?Sized> RefCell<T> {
         }
     }
 
-    /// 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<T> UnsafeCell<T> {
     ///
     /// # 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
     ///