Skip to content

Commit

Permalink
remove extra brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
yggverse committed Dec 18, 2024
1 parent 37da5d5 commit 214d2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/// assert_eq!(ns(5, uk), "котів");
/// ```
pub fn ns<'a>(n: usize, s: &[&'a str]) -> &'a str {
s[if (n % 100) > 4 && (n % 100) < 20 {
s[if n % 100 > 4 && n % 100 < 20 {
2
} else {
[2, 0, 1, 1, 1, 2][usize::min(n % 10, 5)]
Expand Down

0 comments on commit 214d2f0

Please sign in to comment.