about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-11-05 12:25:58 +0100
committerRalf Jung <post@ralfj.de>2022-11-05 12:27:43 +0100
commitdad327090af66f0519f5beaf471ae293834dae7f (patch)
tree4e2f2a46abfc78b1709ae2663c09b16f48f8208e
parent5b3e9090757da9a95b22f589fe39b6a4b5455b96 (diff)
downloadrust-dad327090af66f0519f5beaf471ae293834dae7f.tar.gz
rust-dad327090af66f0519f5beaf471ae293834dae7f.zip
fix a comment in UnsafeCell::new
-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 7bf32cb0d98..bb924fb9e8e 100644
--- a/library/core/src/cell.rs
+++ b/library/core/src/cell.rs
@@ -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
     ///