diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 1b4af44da46..0d717992ce8 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -784,9 +784,6 @@ impl<'b, T: ?Sized> DerefMut for RefMut<'b, T> { /// /// unsafe impl Sync for NotThreadSafe {} /// ``` -/// -/// **NOTE:** `UnsafeCell`'s fields are public to allow static initializers. It is not -/// recommended to access its fields directly, `get` should be used instead. #[lang = "unsafe_cell"] #[stable(feature = "rust1", since = "1.0.0")] pub struct UnsafeCell { @@ -799,8 +796,7 @@ impl UnsafeCell { /// Constructs a new instance of `UnsafeCell` which will wrap the specified /// value. /// - /// All access to the inner value through methods is `unsafe`, and it is highly discouraged to - /// access the fields directly. + /// All access to the inner value through methods is `unsafe`. /// /// # Examples ///