Skip to content

Commit 1a1a99c

Browse files
committed
Change "non-unsafe" to "safe" in UnsafeCell docs
1 parent 9db1f42 commit 1a1a99c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/cell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
15801580
/// `&UnsafeCell<_>` reference); there is no magic whatsoever when dealing with _exclusive_
15811581
/// accesses (_e.g._, through an `&mut UnsafeCell<_>`): neither the cell nor the wrapped value
15821582
/// may be aliased for the duration of that `&mut` borrow.
1583-
/// This is showcased by the [`.get_mut()`] accessor, which is a non-`unsafe` getter that yields
1583+
/// This is showcased by the [`.get_mut()`] accessor, which is a _safe_ getter that yields
15841584
/// a `&mut T`.
15851585
///
15861586
/// [`.get_mut()`]: `UnsafeCell::get_mut`

0 commit comments

Comments
 (0)