improve 'iter_nth_zero' documentation
This commit is contained in:
parent
6184710d08
commit
66ad544175
@ -798,8 +798,9 @@ declare_clippy_lint! {
|
|||||||
declare_clippy_lint! {
|
declare_clippy_lint! {
|
||||||
/// **What it does:** Checks for the use of `iter.nth(0)`.
|
/// **What it does:** Checks for the use of `iter.nth(0)`.
|
||||||
///
|
///
|
||||||
/// **Why is this bad?** `iter.nth(0)` is unnecessary, and `iter.next()`
|
/// **Why is this bad?** `iter.next()` is equivalent to
|
||||||
/// is more readable.
|
/// `iter.nth(0)`, as they both consume the next element,
|
||||||
|
/// but is more readable.
|
||||||
///
|
///
|
||||||
/// **Known problems:** None.
|
/// **Known problems:** None.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user