diff options
| author | Douwe Schulte <d.schulte@uu.nl> | 2022-11-03 21:19:02 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-03 21:19:02 +0000 |
| commit | f65cb6868ddf7258bd153f2d02906c10abbb1a90 (patch) | |
| tree | b7c165498943df738f5bf16d7dd271dcfc39d73f | |
| parent | 160b19429523ea44c4c3b7cad4233b2a35f58b8f (diff) | |
| download | rust-f65cb6868ddf7258bd153f2d02906c10abbb1a90.tar.gz rust-f65cb6868ddf7258bd153f2d02906c10abbb1a90.zip | |
Fixed typos
Fixed a typo that has been found on two locations in comments.
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index bbbdc3aa2a2..834c8f58cb2 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -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 @@ impl<T: Copy, A: Allocator> ExtendFromWithinSpec for Vec<T, A> { 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: |
