diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs index 2905170d22a76..1714c1e990c50 100644 --- a/library/alloc/src/rc.rs +++ b/library/alloc/src/rc.rs @@ -1545,12 +1545,13 @@ impl Rc { /// /// # Safety /// - /// The pointer must have been obtained through `Rc::into_raw` and must satisfy the + /// The pointer must have been obtained through [`Rc::into_raw`][into_raw] and must satisfy the /// same layout requirements specified in [`Rc::from_raw_in`][from_raw_in]. /// The associated `Rc` instance must be valid (i.e. the strong count must be at /// least 1) for the duration of this method, and `ptr` must point to a block of memory /// allocated by the global allocator. /// + /// [into_raw]: Rc::into_raw /// [from_raw_in]: Rc::from_raw_in /// /// # Examples