From 708b6e704df849e08906cab6cec17a74defbc33b Mon Sep 17 00:00:00 2001 From: JustForFun88 Date: Mon, 2 Oct 2023 14:07:22 +0500 Subject: [PATCH] Fix broken links --- src/map.rs | 2 ++ src/raw/mod.rs | 2 ++ src/set.rs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/map.rs b/src/map.rs index edd197771..ed1a6d507 100644 --- a/src/map.rs +++ b/src/map.rs @@ -944,6 +944,8 @@ impl HashMap { /// /// Keeps the allocated memory for reuse. /// + /// [`retain()`]: HashMap::retain + /// /// # Examples /// /// ``` diff --git a/src/raw/mod.rs b/src/raw/mod.rs index 4748106b8..49c90239f 100644 --- a/src/raw/mod.rs +++ b/src/raw/mod.rs @@ -910,6 +910,8 @@ impl RawTable { /// /// The caller must ensure that the `RawTable` outlives the returned [`NonNull`], /// otherwise using it may result in [`undefined behavior`]. + /// + /// [`undefined behavior`]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html #[inline] pub fn data_end(&self) -> NonNull { // SAFETY: `self.table.ctrl` is `NonNull`, so casting it is safe diff --git a/src/set.rs b/src/set.rs index 0b8d9849b..38a96fbbc 100644 --- a/src/set.rs +++ b/src/set.rs @@ -383,6 +383,8 @@ impl HashSet { /// or the iteration short-circuits, then the remaining elements will be retained. /// Use [`retain()`] with a negated predicate if you do not need the returned iterator. /// + /// [`retain()`]: HashSet::retain + /// /// # Examples /// /// ```