Skip to content

Commit

Permalink
Change tutorials to fix resolver issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Apr 30, 2024
1 parent 27f5bc3 commit 579a45d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tutorials/rust/baked/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl_data_provider!(BakedProvider);
fn main() {
let rules = PluralRules::try_new_cardinal_unstable(&BakedProvider, &locale!("ru").into())
.expect("locale 'ru' should be present in the baked data");
let result = rules.category_for(&3.into());
let result = rules.category_for(3);
assert_eq!(result, PluralCategory::Few);
println!("{:?}", result);
}
2 changes: 1 addition & 1 deletion tutorials/rust/custom_compiled/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use icu::plurals::PluralRules;
fn main() {
let rules = PluralRules::try_new_cardinal(&locale!("ru").into())
.expect("locale 'ru' should be present in the compiled data");
let result = rules.category_for(&3.into());
let result = rules.category_for(3);
assert_eq!(result, PluralCategory::Few);
println!("{result:?}");
}
2 changes: 1 addition & 1 deletion tutorials/rust/default/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use icu::plurals::PluralRules;
fn main() {
let rules = PluralRules::try_new_cardinal(&locale!("ru").into())
.expect("locale 'ru' should be present in the compiled data");
let result = rules.category_for(&3.into());
let result = rules.category_for(3);
assert_eq!(result, PluralCategory::Few);
println!("{result:?}");
}

0 comments on commit 579a45d

Please sign in to comment.