about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlavio Percoco <flaper87@gmail.com>2015-01-16 08:18:39 +0100
committerFlavio Percoco <flaper87@gmail.com>2015-01-16 08:18:57 +0100
commit7cd762a9672e7d260025c2e93a74a45cd61bd291 (patch)
treef6d1b18b3db4e5a11ac1267b8e7894a41458cbda
parent2adc8b529ada1d697ec51a94164d9b3f66a40b79 (diff)
Docs fallout
-rw-r--r--src/libcore/cell.rs5
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