about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2023-04-04 05:52:34 +0900
committerGitHub <noreply@github.com>2023-04-04 05:52:34 +0900
commited5e2ddeed0370b251ac70a3e3feebd5cbeb557b (patch)
tree83b62ce586370c367b50e911f640dc228ccfe734
parentbce7253178aba9a6da770867fd4a8cdae9f1ea66 (diff)
parentabc61d23de7007773e3e75d50967e3813ca9ac92 (diff)
downloadrust-ed5e2ddeed0370b251ac70a3e3feebd5cbeb557b.tar.gz
rust-ed5e2ddeed0370b251ac70a3e3feebd5cbeb557b.zip
Rollup merge of #109883 - skaunov:patch-1, r=thomcc
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.rs2
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