Remove duplication in the manual_ok_or lint example

This commit is contained in:
Stanislav Tkach 2021-01-06 13:26:35 +02:00 committed by GitHub
parent efccfe80e4
commit 15d5ac6b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: