]> git.lizzy.rs Git - rust.git/commitdiff
Docs fallout
authorFlavio Percoco <flaper87@gmail.com>
Fri, 16 Jan 2015 07:18:39 +0000 (08:18 +0100)
committerFlavio Percoco <flaper87@gmail.com>
Fri, 16 Jan 2015 07:18:57 +0000 (08:18 +0100)
src/libcore/cell.rs

index 6db01b7cb7afe67d6d26b12f4f9c0881092ff967..ec4007c4c6dd425b891f26a1fe7c542e06e2e7b2 100644 (file)
@@ -509,12 +509,13 @@ fn deref_mut<'a>(&'a mut self) -> &'a mut 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