Skip to content

Commit

Permalink
Auto merge of #10114 - tgross35:option-let-else-wording, r=flip1995
Browse files Browse the repository at this point in the history
option_if_let_else: update known problems wording

changelog: none
<!-- changelog_checked -->
  • Loading branch information
bors committed Jan 31, 2023
2 parents d227f18 + ca5f4a1 commit 607e3e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clippy_lints/src/option_if_let_else.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ declare_clippy_lint! {
/// Using the dedicated functions of the `Option` type is clearer and
/// more concise than an `if let` expression.
///
/// ### Known problems
/// This lint uses a deliberately conservative metric for checking
/// if the inside of either body contains breaks or continues which will
/// cause it to not suggest a fix if either block contains a loop with
/// continues or breaks contained within the loop.
/// ### Notes
/// This lint uses a deliberately conservative metric for checking if the
/// inside of either body contains loop control expressions `break` or
/// `continue` (which cannot be used within closures). If these are found,
/// this lint will not be raised.
///
/// ### Example
/// ```rust
Expand Down

0 comments on commit 607e3e8

Please sign in to comment.