about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-05-27 22:08:53 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-05-28 00:35:20 +0530
commitdb1914ef7e30925ff876275d993e2b05f3744fbb (patch)
tree31f12405bcd818544603ccd2e42ef91bca9adcfd /src
parent04016171cab8e90d23271ebba651b4e460dcc93d (diff)
parent0d80b2a0415e39a4b9421919d2b131f23e0d42de (diff)
downloadrust-db1914ef7e30925ff876275d993e2b05f3744fbb.tar.gz
rust-db1914ef7e30925ff876275d993e2b05f3744fbb.zip
Rollup merge of #25726 - nham:cell_docs, r=alexcrichton
Currently part of the description of the `into_inner` method of `UnsafeCell` seems backwards.
Diffstat (limited to 'src')
-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 c83421d3067..4c9f16fdaee 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
     ///