Skip to content

Commit e64d4ba

Browse files
authored
Update library/alloc/src/vec/mod.rs
1 parent ffd66d9 commit e64d4ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ impl<T, A: Allocator> Vec<T, A> {
19291929
let end = self.as_mut_ptr().add(self.len);
19301930
ptr::write(end, value);
19311931
self.len += 1;
1932-
core::hint::assert_unchecked(self.len() < self.capacity());
1932+
core::hint::assert_unchecked(self.len() <= self.capacity());
19331933
}
19341934
}
19351935

0 commit comments

Comments
 (0)