mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Docs fallout
This commit is contained in:
parent
2adc8b529a
commit
7cd762a967
@ -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…
Reference in New Issue
Block a user