Rename method to assert_len
This commit is contained in:
parent
eb63168e00
commit
f055b0bb08
8 changed files with 57 additions and 57 deletions
|
@ -1312,7 +1312,7 @@ impl<T> Vec<T> {
|
|||
// the hole, and the vector length is restored to the new length.
|
||||
//
|
||||
let len = self.len();
|
||||
let Range { start, end } = range.for_length(len);
|
||||
let Range { start, end } = range.assert_len(len);
|
||||
|
||||
unsafe {
|
||||
// set self.vec length's to start, to be safe in case Drain is leaked
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue