Skip to content

Commit a768b8c

Browse files
authored
Rollup merge of #156783 - MingweiSamuel:patch-2, r=jhpratt
docs: make `Rc::into_raw` clickable in `Rc::increment_strong_count` doc adds doc link
2 parents 7eeb5b9 + a821b2b commit a768b8c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

library/alloc/src/rc.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,14 +1541,12 @@ impl<T: ?Sized> Rc<T> {
15411541
///
15421542
/// # Safety
15431543
///
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].
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`].
15461546
/// The associated `Rc` instance must be valid (i.e. the strong count must be at
15471547
/// least 1) for the duration of this method, and `ptr` must point to a block of memory
15481548
/// allocated by the global allocator.
15491549
///
1550-
/// [from_raw_in]: Rc::from_raw_in
1551-
///
15521550
/// # Examples
15531551
///
15541552
/// ```

0 commit comments

Comments
 (0)