diff options
| -rw-r--r-- | src/libcore/cell.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 6db01b7cb7a..ec4007c4c6d 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -509,12 +509,13 @@ impl<'b, T> DerefMut for RefMut<'b, T> { /// /// ```rust /// use std::cell::UnsafeCell; -/// use std::marker; +/// use std::marker::Sync; /// /// struct NotThreadSafe<T> { /// value: UnsafeCell<T>, -/// marker: marker::NoSync /// } +/// +/// unsafe impl<T> Sync for NotThreadSafe<T> {} /// ``` /// /// **NOTE:** `UnsafeCell<T>` fields are public to allow static initializers. It |
