Docs fallout
This commit is contained in:
parent
2adc8b529a
commit
7cd762a967
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue