about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-05-31 23:11:35 +0200
committerGitHub <noreply@github.com>2022-05-31 23:11:35 +0200
commit0d1e5465f32f2ad307c22830a7ee7e1cae9c367e (patch)
tree995adf9e75ca5731d8fb28d414f85a0f4e3ecffd
parent4f4a819fa92fc61778593c74726f76fd08a2b917 (diff)
parent5dae6c1b96cb832d20c2561852fa3504a341d4ad (diff)
downloadrust-0d1e5465f32f2ad307c22830a7ee7e1cae9c367e.tar.gz
rust-0d1e5465f32f2ad307c22830a7ee7e1cae9c367e.zip
Rollup merge of #97578 - ojeda:checkpatch, r=JohnTitor
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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs
index 0f0692eed49..45947c4f4a5 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -2472,7 +2472,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