Skip to content

Commit

Permalink
Add hyperlinks to Vec and VecDeque
Browse files Browse the repository at this point in the history
Let's try the auto-linking instead, since the relative ones don't work.
  • Loading branch information
scottmcm committed Jun 9, 2019
1 parent 8da94ef commit 5168f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/liballoc/collections/vec_deque.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2709,7 +2709,7 @@ impl<T: fmt::Debug> fmt::Debug for VecDeque<T> {

#[stable(feature = "vecdeque_vec_conversions", since = "1.10.0")]
impl<T> From<Vec<T>> for VecDeque<T> {
/// Turn a `Vec<T>` into a `VecDeque<T>`.
/// Turn a [`Vec<T>`] into a [`VecDeque<T>`].
///
/// 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
Expand Down Expand Up @@ -2762,7 +2762,7 @@ impl<T> From<Vec<T>> for VecDeque<T> {

#[stable(feature = "vecdeque_vec_conversions", since = "1.10.0")]
impl<T> From<VecDeque<T>> for Vec<T> {
/// Turn a `VecDeque<T>` into a `Vec<T>`.
/// Turn a [`VecDeque<T>`] into a [`Vec<T>`].
///
/// 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.
Expand Down

0 comments on commit 5168f5d

Please sign in to comment.