@@ -1153,7 +1153,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
11531153 ///
11541154 /// Ok(output)
11551155 /// }
1156- /// # process_data(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes? ");
1156+ /// # process_data(&[1, 2, 3]).expect("reserving capacity for 12 bytes should never fail ");
11571157 /// ```
11581158 #[ stable( feature = "try_reserve" , since = "1.57.0" ) ]
11591159 pub fn try_reserve_exact ( & mut self , additional : usize ) -> Result < ( ) , TryReserveError > {
@@ -1201,7 +1201,7 @@ impl<T, A: Allocator> VecDeque<T, A> {
12011201 ///
12021202 /// Ok(output)
12031203 /// }
1204- /// # process_data(&[1, 2, 3]).expect("why is the test harness OOMing on 12 bytes? ");
1204+ /// # process_data(&[1, 2, 3]).expect("reserving capacity for 12 bytes should never fail ");
12051205 /// ```
12061206 #[ stable( feature = "try_reserve" , since = "1.57.0" ) ]
12071207 pub fn try_reserve ( & mut self , additional : usize ) -> Result < ( ) , TryReserveError > {
@@ -3871,15 +3871,15 @@ impl<T, A: Allocator> Index<usize> for VecDeque<T, A> {
38713871
38723872 #[ inline]
38733873 fn index ( & self , index : usize ) -> & T {
3874- self . get ( index) . expect ( "Out of bounds access" )
3874+ self . get ( index) . expect ( "out of bounds access" )
38753875 }
38763876}
38773877
38783878#[ stable( feature = "rust1" , since = "1.0.0" ) ]
38793879impl < T , A : Allocator > IndexMut < usize > for VecDeque < T , A > {
38803880 #[ inline]
38813881 fn index_mut ( & mut self , index : usize ) -> & mut T {
3882- self . get_mut ( index) . expect ( "Out of bounds access" )
3882+ self . get_mut ( index) . expect ( "out of bounds access" )
38833883 }
38843884}
38853885
0 commit comments