From 62f467d0472bfe28bc3be63b6c8aef534bab319b Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Sat, 20 Jan 2024 16:01:44 +0800 Subject: [PATCH] fix typos --- fake/src/impls/chrono/mod.rs | 8 ++++---- fake/src/utils.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fake/src/impls/chrono/mod.rs b/fake/src/impls/chrono/mod.rs index 9c6dbdd..056d82f 100644 --- a/fake/src/impls/chrono/mod.rs +++ b/fake/src/impls/chrono/mod.rs @@ -33,11 +33,11 @@ impl Dummy for Utc { impl Dummy for FixedOffset { fn dummy_with_rng(_: &Faker, rng: &mut R) -> Self { if rng.gen_bool(0.5) { - let halfs: i32 = (0..=28).fake_with_rng(rng); - FixedOffset::east_opt(halfs * 30 * 60).expect("failed to create FixedOffset") + let halves: i32 = (0..=28).fake_with_rng(rng); + FixedOffset::east_opt(halves * 30 * 60).expect("failed to create FixedOffset") } else { - let halfs: i32 = (0..=24).fake_with_rng(rng); - FixedOffset::west_opt(halfs * 30 * 60).expect("failed to create FixedOffset") + let halves: i32 = (0..=24).fake_with_rng(rng); + FixedOffset::west_opt(halves * 30 * 60).expect("failed to create FixedOffset") } } } diff --git a/fake/src/utils.rs b/fake/src/utils.rs index 3735dd0..6035e6f 100644 --- a/fake/src/utils.rs +++ b/fake/src/utils.rs @@ -1,5 +1,5 @@ #[cfg(feature = "always-true-rng")] -mod alway_true_rng { +mod always_true_rng { use rand::{rngs::mock::StepRng, Error, RngCore}; use rand_core::impls; @@ -58,4 +58,4 @@ mod alway_true_rng { } #[cfg(feature = "always-true-rng")] -pub use alway_true_rng::AlwaysTrueRng; +pub use always_true_rng::AlwaysTrueRng;