Skip to content

Commit 7cd762a

Browse files
committed
Docs fallout
1 parent 2adc8b5 commit 7cd762a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libcore/cell.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,13 @@ impl<'b, T> DerefMut for RefMut<'b, T> {
509509
///
510510
/// ```rust
511511
/// use std::cell::UnsafeCell;
512-
/// use std::marker;
512+
/// use std::marker::Sync;
513513
///
514514
/// struct NotThreadSafe<T> {
515515
/// value: UnsafeCell<T>,
516-
/// marker: marker::NoSync
517516
/// }
517+
///
518+
/// unsafe impl<T> Sync for NotThreadSafe<T> {}
518519
/// ```
519520
///
520521
/// **NOTE:** `UnsafeCell<T>` fields are public to allow static initializers. It

0 commit comments

Comments
 (0)