From dad327090af66f0519f5beaf471ae293834dae7f Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 5 Nov 2022 12:25:58 +0100 Subject: [PATCH] fix a comment in UnsafeCell::new --- library/core/src/cell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 UnsafeCell { /// 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` requires `unsafe` code. /// /// # Examples ///