mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 12:43:36 +00:00
Remove duplication in the manual_ok_or lint example
This commit is contained in:
parent
efccfe80e4
commit
15d5ac6b2f
@ -23,9 +23,6 @@ declare_clippy_lint! {
|
||||
/// ```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