Skip to content

Commit 6af6808

Browse files
authored
Fix another typo
1 parent 2ef5b9a commit 6af6808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/manual_option_folding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ declare_clippy_lint! {
2424
/// Use instead:
2525
/// ```rust
2626
/// let opt: Option<i32> = None;
27-
/// let res: i32 = foo().unwrap_or(42);
27+
/// let res: i32 = opt.unwrap_or(42);
2828
/// ```
2929
#[clippy::version = "1.74.0"]
3030
pub MANUAL_OPTION_FOLDING,

0 commit comments

Comments
 (0)