Skip to content

Commit cfccdbb

Browse files
Rudxainrudxain
authored and
rudxain
committed
Clarify that modulo_one only applies to ints
1 parent 32374a1 commit cfccdbb

File tree

1 file changed

+2
-2
lines changed
  • clippy_lints/src/operators

1 file changed

+2
-2
lines changed

clippy_lints/src/operators/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ declare_clippy_lint! {
627627

628628
declare_clippy_lint! {
629629
/// ### What it does
630-
/// Checks for getting the remainder of a division by one or minus
630+
/// Checks for getting the remainder of integer division by one or minus
631631
/// one.
632632
///
633633
/// ### Why is this bad?
@@ -646,7 +646,7 @@ declare_clippy_lint! {
646646
#[clippy::version = "pre 1.29.0"]
647647
pub MODULO_ONE,
648648
correctness,
649-
"taking a number modulo +/-1, which can either panic/overflow or always returns 0"
649+
"taking an integer modulo +/-1, which can either panic/overflow or always returns 0"
650650
}
651651

652652
declare_clippy_lint! {

0 commit comments

Comments
 (0)