From 38d4c1b2fc6820a48fd1ad7e8e7b68cb71c0bf79 Mon Sep 17 00:00:00 2001 From: Scott McMurray Date: Thu, 20 Jun 2019 23:38:58 -0700 Subject: [PATCH] Fix the links in Vec(Deque)-from-Vec(Deque) Ok, I can't use `std` in doc-links, only in doc-tests. Try 7... --- src/liballoc/collections/vec_deque.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/liballoc/collections/vec_deque.rs b/src/liballoc/collections/vec_deque.rs index 71faf672962b3..0e98dd53ef7f1 100644 --- a/src/liballoc/collections/vec_deque.rs +++ b/src/liballoc/collections/vec_deque.rs @@ -2711,6 +2711,9 @@ impl fmt::Debug for VecDeque { impl From> for VecDeque { /// Turn a [`Vec`] into a [`VecDeque`]. /// + /// [`Vec`]: crate::vec::Vec + /// [`VecDeque`]: crate::collections::VecDeque + /// /// This avoids reallocating where possible, but the conditions for that are /// strict, and subject to change, and so shouldn't be relied upon unless the /// `Vec` came from `From>` and hasn't been reallocated. @@ -2742,6 +2745,9 @@ impl From> for VecDeque { impl From> for Vec { /// Turn a [`VecDeque`] into a [`Vec`]. /// + /// [`Vec`]: crate::vec::Vec + /// [`VecDeque`]: crate::collections::VecDeque + /// /// This never needs to re-allocate, but does need to do O(n) data movement if /// the circular buffer doesn't happen to be at the beginning of the allocation. ///