未验证 提交 d6280462 编写于 作者: M Manish Goregaokar 提交者: GitHub

Update clippy_lints/src/operators/mod.rs

Co-authored-by: NCatherine Flores <catherine.3.flores@gmail.com>
上级 3157b96a
......@@ -320,12 +320,12 @@
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册