Skip to content

Commit 214d2f0

Browse files
author
yggverse
committed
remove extra brackets
1 parent 37da5d5 commit 214d2f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/// assert_eq!(ns(5, uk), "котів");
1717
/// ```
1818
pub fn ns<'a>(n: usize, s: &[&'a str]) -> &'a str {
19-
s[if (n % 100) > 4 && (n % 100) < 20 {
19+
s[if n % 100 > 4 && n % 100 < 20 {
2020
2
2121
} else {
2222
[2, 0, 1, 1, 1, 2][usize::min(n % 10, 5)]

0 commit comments

Comments
 (0)