mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
fix a comment in UnsafeCell::new
This commit is contained in:
parent
5b3e909075
commit
dad327090a
@ -1936,7 +1936,7 @@ impl<T> UnsafeCell<T> {
|
||||
/// Constructs a new instance of `UnsafeCell` which will wrap the specified
|
||||
/// value.
|
||||
///
|
||||
/// All access to the inner value through methods is `unsafe`.
|
||||
/// All access to the inner value through `&UnsafeCell<T>` requires `unsafe` code.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user