File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4171,7 +4171,8 @@ declare_clippy_lint! {
4171
4171
/// ### What it does
4172
4172
///
4173
4173
/// Checks for `Iterator::map` over ranges without using the parameter which
4174
- /// could be more clearly expressed using `std::iter::repeat(...).take(...)`.
4174
+ /// could be more clearly expressed using `std::iter::repeat(...).take(...)`
4175
+ /// or `std::iter::repeat_n`.
4175
4176
///
4176
4177
/// ### Why is this bad?
4177
4178
///
@@ -4191,7 +4192,7 @@ declare_clippy_lint! {
4191
4192
///
4192
4193
/// ### Known Issues
4193
4194
///
4194
- /// This lint suggest replacing a `Map<Range>` with a `Take<RepeatWith>` or
4195
+ /// This lint may suggest replacing a `Map<Range>` with a `Take<RepeatWith>` or
4195
4196
/// `Take<Repeat>`. The former implements some traits that the latter two do
4196
4197
/// not, such as `DoubleEndedIterator`. As a result, this may not always be an
4197
4198
/// appropriate suggestion.
You can’t perform that action at this time.
0 commit comments