Skip to content

Commit a97e05c

Browse files
authored
Rollup merge of rust-lang#97578 - ojeda:checkpatch, r=JohnTitor
alloc: remove repeated word in comment Linux's `checkpatch.pl` reports: ```txt rust-lang#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>
2 parents ca4a9ac + 5dae6c1 commit a97e05c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2472,7 +2472,7 @@ impl<T: Copy, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
24722472
// SAFETY:
24732473
// - Both pointers are created from unique slice references (`&mut [_]`)
24742474
// so they are valid and do not overlap.
2475-
// - Elements are :Copy so it's OK to to copy them, without doing
2475+
// - Elements are :Copy so it's OK to copy them, without doing
24762476
// anything with the original values
24772477
// - `count` is equal to the len of `source`, so source is valid for
24782478
// `count` reads

0 commit comments

Comments
 (0)