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 @@ -3295,14 +3295,14 @@ declare_clippy_lint! {
3295
3295
/// The `.parse()` call will always fail.
3296
3296
///
3297
3297
/// ### Example
3298
- /// ```rust
3298
+ /// ```rust,ignore
3299
3299
/// let mut input = String::new();
3300
3300
/// std::io::stdin().read_line(&mut input).expect("Failed to read a line");
3301
3301
/// let num: i32 = input.parse().expect("Not a number!");
3302
3302
/// assert_eq!(num, 42); // we never even get here!
3303
3303
/// ```
3304
3304
/// Use instead:
3305
- /// ```rust
3305
+ /// ```rust,ignore
3306
3306
/// let mut input = String::new();
3307
3307
/// std::io::stdin().read_line(&mut input).expect("Failed to read a line");
3308
3308
/// let num: i32 = input.trim_end().parse().expect("Not a number!");
You can’t perform that action at this time.
0 commit comments