Skip to content

Commit

Permalink
Update help text to mention using repeat_n
Browse files Browse the repository at this point in the history
  • Loading branch information
rspencer01 committed Oct 15, 2024
1 parent 3c0ad9b commit 52d35de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clippy_lints/src/methods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4171,7 +4171,8 @@ declare_clippy_lint! {
/// ### What it does
///
/// Checks for `Iterator::map` over ranges without using the parameter which
/// could be more clearly expressed using `std::iter::repeat(...).take(...)`.
/// could be more clearly expressed using `std::iter::repeat(...).take(...)`
/// or `std::iter::repeat_n`.
///
/// ### Why is this bad?
///
Expand All @@ -4191,7 +4192,7 @@ declare_clippy_lint! {
///
/// ### Known Issues
///
/// This lint suggest replacing a `Map<Range>` with a `Take<RepeatWith>` or
/// This lint may suggest replacing a `Map<Range>` with a `Take<RepeatWith>` or
/// `Take<Repeat>`. The former implements some traits that the latter two do
/// not, such as `DoubleEndedIterator`. As a result, this may not always be an
/// appropriate suggestion.
Expand Down

0 comments on commit 52d35de

Please sign in to comment.