Skip to content

Commit 17ff850

Browse files
committed
feat: rename variable in example
1 parent 4493fc7 commit 17ff850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/use_unwrap_or.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ declare_clippy_lint! {
1919
/// // Result
2020
/// # type Error = &'static str;
2121
/// # let result: Result<&str, Error> = Err("error");
22-
/// let port = result.or::<Error>(Ok(fallback)).unwrap();
22+
/// let value = result.or::<Error>(Ok(fallback)).unwrap();
2323
///
2424
/// // Option
2525
/// # let option: Option<&str> = None;
@@ -30,7 +30,7 @@ declare_clippy_lint! {
3030
/// # let fallback = "fallback";
3131
/// // Result
3232
/// # let result: Result<&str, &str> = Err("error");
33-
/// let port = result.unwrap_or(fallback);
33+
/// let value = result.unwrap_or(fallback);
3434
///
3535
/// // Option
3636
/// # let option: Option<&str> = None;

0 commit comments

Comments
 (0)