Skip to content

Commit

Permalink
Rollup merge of #104112 - yancyribbens:add-copy-to-repeat-description…
Browse files Browse the repository at this point in the history
…, 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.
  • Loading branch information
Yuki Okushi committed Nov 20, 2022
2 parents 0858ca9 + f4ffdbf commit e69b842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ impl<T> [T] {
hack::into_vec(self)
}

/// Creates a vector by repeating a slice `n` times.
/// Creates a vector by copying a slice `n` times.
///
/// # Panics
///
Expand Down

0 comments on commit e69b842

Please sign in to comment.