We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4493fc7 commit 17ff850Copy full SHA for 17ff850
clippy_lints/src/use_unwrap_or.rs
@@ -19,7 +19,7 @@ declare_clippy_lint! {
19
/// // Result
20
/// # type Error = &'static str;
21
/// # let result: Result<&str, Error> = Err("error");
22
- /// let port = result.or::<Error>(Ok(fallback)).unwrap();
+ /// let value = result.or::<Error>(Ok(fallback)).unwrap();
23
///
24
/// // Option
25
/// # let option: Option<&str> = None;
@@ -30,7 +30,7 @@ declare_clippy_lint! {
30
/// # let fallback = "fallback";
31
32
/// # let result: Result<&str, &str> = Err("error");
33
- /// let port = result.unwrap_or(fallback);
+ /// let value = result.unwrap_or(fallback);
34
35
36
0 commit comments