option_if_let_else: update known problems wording

This commit is contained in:
Trevor Gross 2022-12-24 23:26:25 -05:00 committed by Trevor Gross
parent e8703a0ce2
commit ca5f4a1dee

View File

@ -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