diff options
| author | bors <bors@rust-lang.org> | 2020-10-09 12:20:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-10-09 12:20:29 +0000 |
| commit | cad10fa3b35a3b09c686579a8ef9f8e55d6cea20 (patch) | |
| tree | c52f9da66fb4b27211ff766e7a5e1f95e751187d | |
| parent | 2f6439ae6a6803d030cceb3ee14c9150e91b328b (diff) | |
| parent | 732d370404198ca68a96901b25a5f2ab3ba9d562 (diff) | |
| download | rust-cad10fa3b35a3b09c686579a8ef9f8e55d6cea20.tar.gz rust-cad10fa3b35a3b09c686579a8ef9f8e55d6cea20.zip | |
Auto merge of #6146 - woshilapin:patch-1, r=flip1995
clippy_lint: Fix doc on 'option_if_let_else' changelog: none
| -rw-r--r-- | clippy_lints/src/option_if_let_else.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/option_if_let_else.rs b/clippy_lints/src/option_if_let_else.rs index 4a3eb9c983a..383a62da821 100644 --- a/clippy_lints/src/option_if_let_else.rs +++ b/clippy_lints/src/option_if_let_else.rs @@ -13,14 +13,14 @@ use rustc_session::{declare_lint_pass, declare_tool_lint}; declare_clippy_lint! { /// **What it does:** - /// Lints usage of `if let Some(v) = ... { y } else { x }` which is more + /// Lints usage of `if let Some(v) = ... { y } else { x }` which is more /// idiomatically done with `Option::map_or` (if the else bit is a pure /// expression) or `Option::map_or_else` (if the else bit is an impure - /// expresion). + /// expression). /// /// **Why is this bad?** /// Using the dedicated functions of the Option type is clearer and - /// more concise than an if let expression. + /// more concise than an `if let` expression. /// /// **Known problems:** /// This lint uses a deliberately conservative metric for checking |
