From 66ad54417519c40db4b0d19c4c7704314166f7c0 Mon Sep 17 00:00:00 2001 From: Areredify Date: Mon, 3 Feb 2020 01:19:16 +0300 Subject: [PATCH] improve 'iter_nth_zero' documentation --- clippy_lints/src/methods/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index f9efec87c3e..82bc8740d1a 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -798,8 +798,9 @@ declare_clippy_lint! { declare_clippy_lint! { /// **What it does:** Checks for the use of `iter.nth(0)`. /// - /// **Why is this bad?** `iter.nth(0)` is unnecessary, and `iter.next()` - /// is more readable. + /// **Why is this bad?** `iter.next()` is equivalent to + /// `iter.nth(0)`, as they both consume the next element, + /// but is more readable. /// /// **Known problems:** None. ///