Spaces:
Running
Running
File size: 367 Bytes
5f923cd | 1 2 3 4 5 6 7 8 9 10 | --- src/earley/perf.rs
+++ src/earley/perf.rs
@@ -143,3 +143,3 @@
for (i, c) in s.chars().enumerate() {
// Insert a comma once we've passed 'offset' and every 3 digits after that.
- if i != 0 && i >= offset && (i - offset).is_multiple_of(3) {
+ if i != 0 && i >= offset && (i - offset) % 3 == 0 {
result.push(',');
}
|