@@ -48,11 +48,11 @@ const MAXIMUM_ZST_CAPACITY: usize = 1 << (core::mem::size_of::<usize>() * 8 - 1)
4848/// so that its elements do not wrap, and returns a mutable slice to the
4949/// now-contiguous element sequence.
5050///
51- /// [`push_back`]: #method. push_back
52- /// [`pop_front`]: #method. pop_front
53- /// [`extend`]: #method. extend
54- /// [`append`]: #method. append
55- /// [`make_contiguous`]: #method. make_contiguous
51+ /// [`push_back`]: VecDeque:: push_back
52+ /// [`pop_front`]: VecDeque:: pop_front
53+ /// [`extend`]: VecDeque:: extend
54+ /// [`append`]: VecDeque:: append
55+ /// [`make_contiguous`]: VecDeque:: make_contiguous
5656#[ cfg_attr( not( test) , rustc_diagnostic_item = "vecdeque_type" ) ]
5757#[ stable( feature = "rust1" , since = "1.0.0" ) ]
5858pub struct VecDeque < T > {
@@ -640,7 +640,7 @@ impl<T> VecDeque<T> {
640640 /// assert!(buf.capacity() >= 11);
641641 /// ```
642642 ///
643- /// [`reserve`]: #method. reserve
643+ /// [`reserve`]: VecDeque:: reserve
644644 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
645645 pub fn reserve_exact ( & mut self , additional : usize ) {
646646 self . reserve ( additional) ;
@@ -987,8 +987,10 @@ impl<T> VecDeque<T> {
987987 /// Returns a pair of slices which contain, in order, the contents of the
988988 /// `VecDeque`.
989989 ///
990- /// If [`make_contiguous`](#method.make_contiguous) was previously called, all elements
991- /// of the `VecDeque` will be in the first slice and the second slice will be empty.
990+ /// If [`make_contiguous`] was previously called, all elements of the
991+ /// `VecDeque` will be in the first slice and the second slice will be empty.
992+ ///
993+ /// [`make_contiguous`]: VecDeque::make_contiguous
992994 ///
993995 /// # Examples
994996 ///
@@ -1020,8 +1022,10 @@ impl<T> VecDeque<T> {
10201022 /// Returns a pair of slices which contain, in order, the contents of the
10211023 /// `VecDeque`.
10221024 ///
1023- /// If [`make_contiguous`](#method.make_contiguous) was previously called, all elements
1024- /// of the `VecDeque` will be in the first slice and the second slice will be empty.
1025+ /// If [`make_contiguous`] was previously called, all elements of the
1026+ /// `VecDeque` will be in the first slice and the second slice will be empty.
1027+ ///
1028+ /// [`make_contiguous`]: VecDeque::make_contiguous
10251029 ///
10261030 /// # Examples
10271031 ///
@@ -2160,15 +2164,20 @@ impl<T> VecDeque<T> {
21602164 }
21612165 }
21622166
2163- /// Rearranges the internal storage of this deque so it is one contiguous slice, which is then returned.
2167+ /// Rearranges the internal storage of this deque so it is one contiguous
2168+ /// slice, which is then returned.
21642169 ///
2165- /// This method does not allocate and does not change the order of the inserted elements.
2166- /// As it returns a mutable slice, this can be used to sort or binary search a deque.
2170+ /// This method does not allocate and does not change the order of the
2171+ /// inserted elements. As it returns a mutable slice, this can be used to
2172+ /// sort or binary search a deque.
21672173 ///
2168- /// Once the internal storage is contiguous, the [`as_slices`](#method.as_slices) and
2169- /// [`as_mut_slices`](#method.as_mut_slices) methods will return the entire contents of the
2174+ /// Once the internal storage is contiguous, the [`as_slices`] and
2175+ /// [`as_mut_slices`] methods will return the entire contents of the
21702176 /// `VecDeque` in a single slice.
21712177 ///
2178+ /// [`as_slices`]: VecDeque::as_slices
2179+ /// [`as_mut_slices`]: VecDeque::as_mut_slices
2180+ ///
21722181 /// # Examples
21732182 ///
21742183 /// Sorting the content of a deque.
@@ -2495,8 +2504,7 @@ fn count(tail: usize, head: usize, size: usize) -> usize {
24952504/// This `struct` is created by the [`iter`] method on [`VecDeque`]. See its
24962505/// documentation for more.
24972506///
2498- /// [`iter`]: struct.VecDeque.html#method.iter
2499- /// [`VecDeque`]: struct.VecDeque.html
2507+ /// [`iter`]: VecDeque::iter
25002508#[ stable( feature = "rust1" , since = "1.0.0" ) ]
25012509pub struct Iter < ' a , T : ' a > {
25022510 ring : & ' a [ T ] ,
@@ -2650,8 +2658,7 @@ impl<T> FusedIterator for Iter<'_, T> {}
26502658/// This `struct` is created by the [`iter_mut`] method on [`VecDeque`]. See its
26512659/// documentation for more.
26522660///
2653- /// [`iter_mut`]: struct.VecDeque.html#method.iter_mut
2654- /// [`VecDeque`]: struct.VecDeque.html
2661+ /// [`iter_mut`]: VecDeque::iter_mut
26552662#[ stable( feature = "rust1" , since = "1.0.0" ) ]
26562663pub struct IterMut < ' a , T : ' a > {
26572664 ring : & ' a mut [ T ] ,
@@ -2756,8 +2763,7 @@ impl<T> FusedIterator for IterMut<'_, T> {}
27562763/// This `struct` is created by the [`into_iter`] method on [`VecDeque`]
27572764/// (provided by the `IntoIterator` trait). See its documentation for more.
27582765///
2759- /// [`into_iter`]: struct.VecDeque.html#method.into_iter
2760- /// [`VecDeque`]: struct.VecDeque.html
2766+ /// [`into_iter`]: VecDeque::into_iter
27612767#[ derive( Clone ) ]
27622768#[ stable( feature = "rust1" , since = "1.0.0" ) ]
27632769pub struct IntoIter < T > {
0 commit comments