1
Fork 0

Rename method to assert_len

This commit is contained in:
dylni 2020-09-18 13:55:03 -04:00
parent eb63168e00
commit f055b0bb08
8 changed files with 57 additions and 57 deletions

View file

@ -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