Skip to content

Commit

Permalink
Add intra-doc-links to LinkedList rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Sep 16, 2021
1 parent 22719ef commit 52ab3e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/alloc/src/collections/linked_list.rs
Expand Up @@ -38,9 +38,12 @@ mod tests;
/// let list = LinkedList::from([1, 2, 3]);
/// ```
///
/// NOTE: It is almost always better to use `Vec` or `VecDeque` because
/// NOTE: It is almost always better to use [`Vec`] or [`VecDeque`] because
/// array-based containers are generally faster,
/// more memory efficient, and make better use of CPU cache.
///
/// [`Vec`]: crate::vec::Vec
/// [`VecDeque`]: super::vec_deque::VecDeque
#[stable(feature = "rust1", since = "1.0.0")]
#[cfg_attr(not(test), rustc_diagnostic_item = "LinkedList")]
pub struct LinkedList<T> {
Expand Down

0 comments on commit 52ab3e8

Please sign in to comment.