Remove duplication in the manual_ok_or lint example
This commit is contained in:
parent
efccfe80e4
commit
15d5ac6b2f
@ -23,9 +23,6 @@
|
||||
/// ```rust
|
||||
/// let foo: Option<i32> = None;
|
||||
/// foo.map_or(Err("error"), |v| Ok(v));
|
||||
///
|
||||
/// let foo: Option<i32> = None;
|
||||
/// foo.map_or(Err("error"), |v| Ok(v));
|
||||
/// ```
|
||||
///
|
||||
/// Use instead:
|
||||
|
Loading…
Reference in New Issue
Block a user