Skip to content

Commit 52ab3e8

Browse files
committed
Add intra-doc-links to LinkedList rustdoc
1 parent 22719ef commit 52ab3e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/alloc/src/collections/linked_list.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ mod tests;
3838
/// let list = LinkedList::from([1, 2, 3]);
3939
/// ```
4040
///
41-
/// NOTE: It is almost always better to use `Vec` or `VecDeque` because
41+
/// NOTE: It is almost always better to use [`Vec`] or [`VecDeque`] because
4242
/// array-based containers are generally faster,
4343
/// more memory efficient, and make better use of CPU cache.
44+
///
45+
/// [`Vec`]: crate::vec::Vec
46+
/// [`VecDeque`]: super::vec_deque::VecDeque
4447
#[stable(feature = "rust1", since = "1.0.0")]
4548
#[cfg_attr(not(test), rustc_diagnostic_item = "LinkedList")]
4649
pub struct LinkedList<T> {

0 commit comments

Comments
 (0)