diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index 6db01b7cb7af..ec4007c4c6dd 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 { /// value: UnsafeCell, -/// marker: marker::NoSync /// } +/// +/// unsafe impl Sync for NotThreadSafe {} /// ``` /// /// **NOTE:** `UnsafeCell` fields are public to allow static initializers. It