Skip to content

Commit

Permalink
Merge pull request #162 from jayvdb/spelling
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
cksac authored Jan 22, 2024
2 parents 9dc139f + 62f467d commit 8069930
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions fake/src/impls/chrono/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ impl Dummy<Faker> for Utc {
impl Dummy<Faker> for FixedOffset {
fn dummy_with_rng<R: Rng + ?Sized>(_: &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")
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions fake/src/utils.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -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;

0 comments on commit 8069930

Please sign in to comment.