Skip to content

Commit cd2e480

Browse files
authored
Rollup merge of #103941 - douweschulte:patch-1, r=jyn514
Fixed typos Fixed a typo that has been found on two locations in comments.
2 parents fe09b97 + b6cc745 commit cd2e480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alloc/src/vec/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2588,7 +2588,7 @@ impl<T: Clone, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
25882588
let (this, spare, len) = unsafe { self.split_at_spare_mut_with_len() };
25892589

25902590
// SAFETY:
2591-
// - caller guaratees that src is a valid index
2591+
// - caller guarantees that src is a valid index
25922592
let to_clone = unsafe { this.get_unchecked(src) };
25932593

25942594
iter::zip(to_clone, spare)
@@ -2607,7 +2607,7 @@ impl<T: Copy, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
26072607
let (init, spare) = self.split_at_spare_mut();
26082608

26092609
// SAFETY:
2610-
// - caller guaratees that `src` is a valid index
2610+
// - caller guarantees that `src` is a valid index
26112611
let source = unsafe { init.get_unchecked(src) };
26122612

26132613
// SAFETY:

0 commit comments

Comments
 (0)