From dd007e44777ec68c05191d11cbe90a6183134c42 Mon Sep 17 00:00:00 2001 From: BO41 Date: Sun, 2 Jun 2019 20:06:50 +0200 Subject: [PATCH] Change from ignore to rust --- clippy_lints/src/loops.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/loops.rs b/clippy_lints/src/loops.rs index 320eb0deafb..822b3df05eb 100644 --- a/clippy_lints/src/loops.rs +++ b/clippy_lints/src/loops.rs @@ -61,13 +61,15 @@ declare_clippy_lint! { /// **Known problems:** None. /// /// **Example:** - /// ```ignore + /// ```rust + /// let vec = vec!['a', 'b', 'c']; /// for i in 0..vec.len() { /// println!("{}", vec[i]); /// } /// ``` /// Could be written as: - /// ```ignore + /// ```rust + /// let vec = vec!['a', 'b', 'c']; /// for i in vec { /// println!("{}", i); /// }