Update clippy_lints/src/operators/mod.rs

Co-authored-by: Catherine Flores <catherine.3.flores@gmail.com>
This commit is contained in:
Manish Goregaokar 2023-08-06 17:19:43 +00:00 committed by GitHub
parent 3157b96a5b
commit d628046244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,12 +320,12 @@ declare_clippy_lint! {
declare_clippy_lint! {
/// ### What it does
/// Checks for ineffective double comparisons against constants
/// Checks for ineffective double comparisons against constants.
///
/// ### Why is this bad?
/// Only one of the comparisons has any effect on the result
/// The programmer probably intended to flip one of the comparison operators,
/// or compare a different value entirely
/// Only one of the comparisons has any effect on the result, the programmer
/// probably intended to flip one of the comparison operators, or compare a
/// different value entirely.
///
/// ### Example
/// ```rust