about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEllen <supbscripter@gmail.com>2020-11-29 20:27:01 +0000
committerEllen <supbscripter@gmail.com>2020-11-29 20:27:14 +0000
commit1a1a99ccb7be53c0a14d52ef825caf0fb9fa01a5 (patch)
treece88174e77db21edf6284a27c43085ab22412650
parent9db1f42fa2ac096771ff956d89bcc148842859b6 (diff)
downloadrust-1a1a99ccb7be53c0a14d52ef825caf0fb9fa01a5.tar.gz
rust-1a1a99ccb7be53c0a14d52ef825caf0fb9fa01a5.zip
Change "non-unsafe" to "safe" in UnsafeCell docs
-rw-r--r--library/core/src/cell.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs
index 2d01a26df61..cec40aebd74 100644
--- a/library/core/src/cell.rs
+++ b/library/core/src/cell.rs
@@ -1580,7 +1580,7 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
 /// `&UnsafeCell<_>` reference); there is no magic whatsoever when dealing with _exclusive_
 /// accesses (_e.g._, through an `&mut UnsafeCell<_>`): neither the cell nor the wrapped value
 /// may be aliased for the duration of that `&mut` borrow.
-/// This is showcased by the [`.get_mut()`] accessor, which is a non-`unsafe` getter that yields
+/// This is showcased by the [`.get_mut()`] accessor, which is a _safe_ getter that yields
 /// a `&mut T`.
 ///
 /// [`.get_mut()`]: `UnsafeCell::get_mut`