diff --git a/README.md b/README.md index a2e7636..b649628 100644 --- a/README.md +++ b/README.md @@ -184,7 +184,7 @@ CompanyName(); Buzzword(); BuzzwordMiddle(); BuzzwordTail(); -CatchPhase(); +CatchPhrase(); BsVerb(); BsAdj(); BsNoun(); diff --git a/fake/README.md b/fake/README.md index 9926da5..c09e2bd 100644 --- a/fake/README.md +++ b/fake/README.md @@ -182,7 +182,7 @@ CompanyName(); Buzzword(); BuzzwordMiddle(); BuzzwordTail(); -CatchPhase(); +CatchPhrase(); BsVerb(); BsAdj(); BsNoun(); diff --git a/fake/examples/collections.rs b/fake/examples/collections.rs index eba1ffe..c4dabaf 100644 --- a/fake/examples/collections.rs +++ b/fake/examples/collections.rs @@ -1,4 +1,4 @@ -use fake::{self, Fake, Faker}; +use fake::{Fake, Faker}; use rand::distributions; use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; diff --git a/fake/examples/fakers.rs b/fake/examples/fakers.rs index ad077f7..b9e3f6f 100644 --- a/fake/examples/fakers.rs +++ b/fake/examples/fakers.rs @@ -196,7 +196,7 @@ fn company_faker() { let val: String = BuzzwordTail(EN).fake(); println!("{:?}", val); - let val: String = CatchPhase(EN).fake(); + let val: String = CatchPhrase(EN).fake(); println!("{:?}", val); let val: String = BsVerb(EN).fake(); diff --git a/fake/src/faker/impls/company.rs b/fake/src/faker/impls/company.rs index 40312ba..18bd487 100644 --- a/fake/src/faker/impls/company.rs +++ b/fake/src/faker/impls/company.rs @@ -67,8 +67,8 @@ impl Dummy> for &str { } } -impl Dummy> for String { - fn dummy_with_rng(c: &CatchPhase, rng: &mut R) -> Self { +impl Dummy> for String { + fn dummy_with_rng(c: &CatchPhrase, rng: &mut R) -> Self { L::COMPANY_CATCH_PHASE_TPL .replace("{Head}", Buzzword(c.0).fake_with_rng::<&str, _>(rng)) .replace( diff --git a/fake/src/faker/mod.rs b/fake/src/faker/mod.rs index 4931c0d..4dc4582 100644 --- a/fake/src/faker/mod.rs +++ b/fake/src/faker/mod.rs @@ -135,7 +135,7 @@ pub mod company { Buzzword(); BuzzwordMiddle(); BuzzwordTail(); - CatchPhase(); + CatchPhrase(); BsVerb(); BsAdj(); BsNoun(); diff --git a/fake/tests/determinism.rs b/fake/tests/determinism.rs index d62a60f..a030768 100644 --- a/fake/tests/determinism.rs +++ b/fake/tests/determinism.rs @@ -156,7 +156,7 @@ check_determinism! { l10d BsVerb; String, fake_bs_verb_en, fake_bs_verb_fr, fake check_determinism! { l10d Buzzword; String, fake_buzzword_en, fake_buzzword_fr, fake_buzzword_cn, fake_buzzword_tw, fake_buzzword_jp, fake_buzzword_br } check_determinism! { l10d BuzzwordMiddle; String, fake_buzzword_middle_en, fake_buzzword_middle_fr, fake_buzzword_middle_cn, fake_buzzword_middle_tw, fake_buzzword_middle_jp, fake_buzzword_middle_br } check_determinism! { l10d BuzzwordTail; String, fake_buzzword_tail_en, fake_buzzword_tail_fr, fake_buzzword_tail_cn, fake_buzzword_tail_tw, fake_buzzword_tail_jp, fake_buzzword_tail_br } -check_determinism! { l10d CatchPhase; String, fake_catchphrase_en, fake_catchphrase_fr, fake_catchphrase_cn, fake_catchphrase_tw, fake_catchphrase_jp, fake_catchphrase_br } +check_determinism! { l10d CatchPhrase; String, fake_catchphrase_en, fake_catchphrase_fr, fake_catchphrase_cn, fake_catchphrase_tw, fake_catchphrase_jp, fake_catchphrase_br } check_determinism! { l10d CompanyName; String, fake_company_name_en, fake_company_name_fr, fake_company_name_cn, fake_company_name_tw, fake_company_name_jp, fake_company_name_br } check_determinism! { l10d CompanySuffix; String, fake_company_suffix_en, fake_company_suffix_fr, fake_company_suffix_cn, fake_company_suffix_tw, fake_company_suffix_jp, fake_company_suffix_br } check_determinism! { l10d Industry; String, fake_industry_en, fake_industry_fr, fake_industry_cn, fake_industry_tw, fake_industry_jp, fake_industry_br }