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! {
3326
3326
/// The `.parse()` call will always fail.
3327
3327
///
3328
3328
/// ### Example
3329
- /// ```rust
3329
+ /// ```rust,ignore
3330
3330
/// let mut input = String::new();
3331
3331
/// std::io::stdin().read_line(&mut input).expect("Failed to read a line");
3332
3332
/// let num: i32 = input.parse().expect("Not a number!");
3333
3333
/// assert_eq!(num, 42); // we never even get here!
3334
3334
/// ```
3335
3335
/// Use instead:
3336
- /// ```rust
3336
+ /// ```rust,ignore
3337
3337
/// let mut input = String::new();
3338
3338
/// std::io::stdin().read_line(&mut input).expect("Failed to read a line");
3339
3339
/// let num: i32 = input.trim_end().parse().expect("Not a number!");
You can’t perform that action at this time.
0 commit comments