Skip to content

Commit 38d4c1b

Browse files
committed
Fix the links in Vec(Deque)-from-Vec(Deque)
Ok, I can't use `std` in doc-links, only in doc-tests. Try 7...
1 parent dbec74f commit 38d4c1b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/liballoc/collections/vec_deque.rs

+6
Original file line numberDiff line numberDiff line change
@@ -2711,6 +2711,9 @@ impl<T: fmt::Debug> fmt::Debug for VecDeque<T> {
27112711
impl<T> From<Vec<T>> for VecDeque<T> {
27122712
/// Turn a [`Vec<T>`] into a [`VecDeque<T>`].
27132713
///
2714+
/// [`Vec<T>`]: crate::vec::Vec
2715+
/// [`VecDeque<T>`]: crate::collections::VecDeque
2716+
///
27142717
/// This avoids reallocating where possible, but the conditions for that are
27152718
/// strict, and subject to change, and so shouldn't be relied upon unless the
27162719
/// `Vec<T>` came from `From<VecDeque<T>>` and hasn't been reallocated.
@@ -2742,6 +2745,9 @@ impl<T> From<Vec<T>> for VecDeque<T> {
27422745
impl<T> From<VecDeque<T>> for Vec<T> {
27432746
/// Turn a [`VecDeque<T>`] into a [`Vec<T>`].
27442747
///
2748+
/// [`Vec<T>`]: crate::vec::Vec
2749+
/// [`VecDeque<T>`]: crate::collections::VecDeque
2750+
///
27452751
/// This never needs to re-allocate, but does need to do O(n) data movement if
27462752
/// the circular buffer doesn't happen to be at the beginning of the allocation.
27472753
///

0 commit comments

Comments
 (0)