diff options
author | Miguel Ojeda <ojeda@kernel.org> | 2022-05-31 12:28:57 +0200 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2022-05-31 12:33:31 +0200 |
commit | 5dae6c1b96cb832d20c2561852fa3504a341d4ad (patch) | |
tree | 5d6348d20d9f11190110af78bfc8fc53c63b24d7 | |
parent | c35035cefc709abddabfb28ecc6a326458d46ce2 (diff) | |
download | rust-5dae6c1b96cb832d20c2561852fa3504a341d4ad.tar.gz |
alloc: remove repeated word in comment
Linux's `checkpatch.pl` reports:
```txt
#42544: FILE: rust/alloc/vec/mod.rs:2692:
WARNING: Possible repeated word: 'to'
+ // - Elements are :Copy so it's OK to to copy them, without doing
```
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
-rw-r--r-- | library/alloc/src/vec/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index d222fcb445f..fa3fbb86582 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -2470,7 +2470,7 @@ impl<T: Copy, A: Allocator> ExtendFromWithinSpec for Vec<T, A> { // SAFETY: // - Both pointers are created from unique slice references (`&mut [_]`) // so they are valid and do not overlap. - // - Elements are :Copy so it's OK to to copy them, without doing + // - Elements are :Copy so it's OK to copy them, without doing // anything with the original values // - `count` is equal to the len of `source`, so source is valid for // `count` reads |