Skip to content

Commit abc61d2

Browse files
authored
Add links to <cell.rs>
`UnsafeCell` page could benefit too from having links to these most popular structs in the module.
1 parent 3328913 commit abc61d2

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
@@ -1816,7 +1816,7 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
18161816
/// `UnsafeCell<T>` opts-out of the immutability guarantee for `&T`: a shared reference
18171817
/// `&UnsafeCell<T>` may point to data that is being mutated. This is called "interior mutability".
18181818
///
1819-
/// All other types that allow internal mutability, such as `Cell<T>` and `RefCell<T>`, internally
1819+
/// All other types that allow internal mutability, such as [`Cell<T>`] and [`RefCell<T>`], internally
18201820
/// use `UnsafeCell` to wrap their data.
18211821
///
18221822
/// Note that only the immutability guarantee for shared references is affected by `UnsafeCell`. The

0 commit comments

Comments
 (0)