File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3326,14 +3326,14 @@ declare_clippy_lint! {
33263326 /// The `.parse()` call will always fail.
33273327 ///
33283328 /// ### Example
3329- /// ```rust
3329+ /// ```rust,ignore
33303330 /// let mut input = String::new();
33313331 /// std::io::stdin().read_line(&mut input).expect("Failed to read a line");
33323332 /// let num: i32 = input.parse().expect("Not a number!");
33333333 /// assert_eq!(num, 42); // we never even get here!
33343334 /// ```
33353335 /// Use instead:
3336- /// ```rust
3336+ /// ```rust,ignore
33373337 /// let mut input = String::new();
33383338 /// std::io::stdin().read_line(&mut input).expect("Failed to read a line");
33393339 /// let num: i32 = input.trim_end().parse().expect("Not a number!");
You can’t perform that action at this time.
0 commit comments