mirror of
https://github.com/rust-lang/rust
synced 2024-10-17 22:13:59 +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 a new issue