Skip to content

Commit dad3270

Browse files
committed
fix a comment in UnsafeCell::new
1 parent 5b3e909 commit dad3270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1936,7 +1936,7 @@ impl<T> UnsafeCell<T> {
19361936
/// Constructs a new instance of `UnsafeCell` which will wrap the specified
19371937
/// value.
19381938
///
1939-
/// All access to the inner value through methods is `unsafe`.
1939+
/// All access to the inner value through `&UnsafeCell<T>` requires `unsafe` code.
19401940
///
19411941
/// # Examples
19421942
///

0 commit comments

Comments
 (0)