@@ -463,7 +463,7 @@ impl<T> Vec<T> {
463
463
/// Does nothing if the capacity is already sufficient.
464
464
///
465
465
/// Note that the allocator may give the collection more space than it
466
- /// requests. Therefore capacity can not be relied upon to be precisely
466
+ /// requests. Therefore, capacity can not be relied upon to be precisely
467
467
/// minimal. Prefer `reserve` if future insertions are expected.
468
468
///
469
469
/// # Panics
@@ -525,7 +525,7 @@ impl<T> Vec<T> {
525
525
/// Does nothing if the capacity is already sufficient.
526
526
///
527
527
/// Note that the allocator may give the collection more space than it
528
- /// requests. Therefore capacity can not be relied upon to be precisely
528
+ /// requests. Therefore, capacity can not be relied upon to be precisely
529
529
/// minimal. Prefer `reserve` if future insertions are expected.
530
530
///
531
531
/// # Errors
@@ -2608,7 +2608,7 @@ impl<T> Drain<'_, T> {
2608
2608
/// The range from `self.vec.len` to `self.tail_start` contains elements
2609
2609
/// that have been moved out.
2610
2610
/// Fill that range as much as possible with new elements from the `replace_with` iterator.
2611
- /// Return whether we filled the entire range. (`replace_with.next()` didn’t return `None`.)
2611
+ /// Returns `true` if we filled the entire range. (`replace_with.next()` didn’t return `None`.)
2612
2612
unsafe fn fill < I : Iterator < Item =T > > ( & mut self , replace_with : & mut I ) -> bool {
2613
2613
let vec = self . vec . as_mut ( ) ;
2614
2614
let range_start = vec. len ;
@@ -2628,7 +2628,7 @@ impl<T> Drain<'_, T> {
2628
2628
true
2629
2629
}
2630
2630
2631
- /// Make room for inserting more elements before the tail.
2631
+ /// Makes room for inserting more elements before the tail.
2632
2632
unsafe fn move_tail ( & mut self , extra_capacity : usize ) {
2633
2633
let vec = self . vec . as_mut ( ) ;
2634
2634
let used_capacity = self . tail_start + self . tail_len ;
0 commit comments