mirror of
https://github.com/YGGverse/plurify.git
synced 2026-03-31 09:05:40 +00:00
remove extra brackets
This commit is contained in:
parent
37da5d5a66
commit
214d2f0361
1 changed files with 1 additions and 1 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue