Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove obsolete note about UnsafeCell's fields
  • Loading branch information
apasel422 committed Oct 21, 2015
1 parent ea2dabf commit f657e13
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/libcore/cell.rs
Expand Up @@ -784,9 +784,6 @@ impl<'b, T: ?Sized> DerefMut for RefMut<'b, T> {
///
/// unsafe impl<T> Sync for NotThreadSafe<T> {}
/// ```
///
/// **NOTE:** `UnsafeCell<T>`'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<T: ?Sized> {
Expand All @@ -799,8 +796,7 @@ impl<T> UnsafeCell<T> {
/// 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
///
Expand Down

0 comments on commit f657e13

Please sign in to comment.