Fix logic mistake
This commit is contained in:
parent
0c0f8db347
commit
e7e4b35bdf
@ -368,7 +368,7 @@ impl LiteralDigitGrouping {
|
||||
|
||||
let first = groups.next().expect("At least one group");
|
||||
|
||||
if (radix == Radix::Binary || radix == Radix::Hexadecimal) && groups.any(|i| i != 4 || i != 2) {
|
||||
if (radix == Radix::Binary || radix == Radix::Hexadecimal) && groups.any(|i| i != 4 && i != 2) {
|
||||
return Err(WarningType::UnusualByteGrouping);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user