Skip to content

Commit e69b842

Browse files
author
Yuki Okushi
authored
Rollup merge of #104112 - yancyribbens:add-copy-to-repeat-description, r=JohnTitor
rustdoc: Add copy to the description of repeat Small nit, but it's more clear to say `copy` here instead of defining `repeat` in terms of itself.
2 parents 0858ca9 + f4ffdbf commit e69b842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ impl<T> [T] {
458458
hack::into_vec(self)
459459
}
460460

461-
/// Creates a vector by repeating a slice `n` times.
461+
/// Creates a vector by copying a slice `n` times.
462462
///
463463
/// # Panics
464464
///

0 commit comments

Comments
 (0)