From 49f8c4460f026c25128e54f98c13830a4aa03b1e Mon Sep 17 00:00:00 2001 From: John Arundel Date: Thu, 23 May 2024 10:39:52 +0100 Subject: [PATCH] [ needless_for_each ]: fix doc nits --- clippy_lints/src/needless_for_each.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/needless_for_each.rs b/clippy_lints/src/needless_for_each.rs index 630018238f4c..28910767840f 100644 --- a/clippy_lints/src/needless_for_each.rs +++ b/clippy_lints/src/needless_for_each.rs @@ -31,8 +31,8 @@ declare_clippy_lint! { /// Use instead: /// ```no_run /// let v = vec![0, 1, 2]; - /// for elem in v.iter() { - /// println!("{}", elem); + /// for elem in v { + /// println!("{elem}"); /// } /// ``` ///