diff options
| author | Sergey Kaunov <65976143+skaunov@users.noreply.github.com> | 2023-04-03 09:18:14 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-03 09:18:14 +0300 |
| commit | abc61d23de7007773e3e75d50967e3813ca9ac92 (patch) | |
| tree | f29ddc8a2119fcf36732b3f1c57bd79aa63782c2 | |
| parent | 33289132ecc1805250f63801fded10fceb2300d8 (diff) | |
| download | rust-abc61d23de7007773e3e75d50967e3813ca9ac92.tar.gz rust-abc61d23de7007773e3e75d50967e3813ca9ac92.zip | |
Add links to <cell.rs>
`UnsafeCell` page could benefit too from having links to these most popular structs in the module.
| -rw-r--r-- | library/core/src/cell.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index 63bce5d0ccd..d728dc03817 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -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 |
