Skip to content

Commit cad10fa

Browse files
committed
Auto merge of #6146 - woshilapin:patch-1, r=flip1995
clippy_lint: Fix doc on 'option_if_let_else' changelog: none
2 parents 2f6439a + 732d370 commit cad10fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/option_if_let_else.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ use rustc_session::{declare_lint_pass, declare_tool_lint};
1313

1414
declare_clippy_lint! {
1515
/// **What it does:**
16-
/// Lints usage of `if let Some(v) = ... { y } else { x }` which is more
16+
/// Lints usage of `if let Some(v) = ... { y } else { x }` which is more
1717
/// idiomatically done with `Option::map_or` (if the else bit is a pure
1818
/// expression) or `Option::map_or_else` (if the else bit is an impure
19-
/// expresion).
19+
/// expression).
2020
///
2121
/// **Why is this bad?**
2222
/// Using the dedicated functions of the Option type is clearer and
23-
/// more concise than an if let expression.
23+
/// more concise than an `if let` expression.
2424
///
2525
/// **Known problems:**
2626
/// This lint uses a deliberately conservative metric for checking

0 commit comments

Comments
 (0)