fix a comment in UnsafeCell::new

This commit is contained in:
Ralf Jung 2022-11-05 12:25:58 +01:00
parent 5b3e909075
commit dad327090a

View file

@ -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
///