We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7eeb5b9 + a821b2b commit a768b8cCopy full SHA for a768b8c
1 file changed
library/alloc/src/rc.rs
@@ -1541,14 +1541,12 @@ impl<T: ?Sized> Rc<T> {
1541
///
1542
/// # Safety
1543
1544
- /// The pointer must have been obtained through `Rc::into_raw` and must satisfy the
1545
- /// same layout requirements specified in [`Rc::from_raw_in`][from_raw_in].
+ /// The pointer must have been obtained through [`Rc::into_raw`] and must satisfy the
+ /// same layout requirements specified in [`Rc::from_raw_in`].
1546
/// The associated `Rc` instance must be valid (i.e. the strong count must be at
1547
/// least 1) for the duration of this method, and `ptr` must point to a block of memory
1548
/// allocated by the global allocator.
1549
1550
- /// [from_raw_in]: Rc::from_raw_in
1551
- ///
1552
/// # Examples
1553
1554
/// ```
0 commit comments