Fixed typos

Fixed a typo that has been found on two locations in comments.
This commit is contained in:
Douwe Schulte 2022-11-03 21:19:02 +00:00 committed by GitHub
parent 160b194295
commit f65cb6868d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2588,7 +2588,7 @@ impl<T: Clone, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
let (this, spare, len) = unsafe { self.split_at_spare_mut_with_len() };
// SAFETY:
// - caller guaratees that src is a valid index
// - caller guarantees that src is a valid index
let to_clone = unsafe { this.get_unchecked(src) };
iter::zip(to_clone, spare)
@ -2607,7 +2607,7 @@ unsafe fn spec_extend_from_within(&mut self, src: Range<usize>) {
let (init, spare) = self.split_at_spare_mut();
// SAFETY:
// - caller guaratees that `src` is a valid index
// - caller guarantees that `src` is a valid index
let source = unsafe { init.get_unchecked(src) };
// SAFETY: