Skip to content

Commit

Permalink
Rollup merge of rust-lang#109883 - skaunov:patch-1, r=thomcc
Browse files Browse the repository at this point in the history
Add links to <cell.rs>

`UnsafeCell` page could benefit too from having links to these most popular structs in the module.
  • Loading branch information
JohnTitor authored Apr 3, 2023
2 parents bce7253 + abc61d2 commit ed5e2dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,7 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
/// `UnsafeCell<T>` opts-out of the immutability guarantee for `&T`: a shared reference
/// `&UnsafeCell<T>` may point to data that is being mutated. This is called "interior mutability".
///
/// All other types that allow internal mutability, such as `Cell<T>` and `RefCell<T>`, internally
/// All other types that allow internal mutability, such as [`Cell<T>`] and [`RefCell<T>`], internally
/// use `UnsafeCell` to wrap their data.
///
/// Note that only the immutability guarantee for shared references is affected by `UnsafeCell`. The
Expand Down

0 comments on commit ed5e2dd

Please sign in to comment.