Skip to content

Commit 6b63c44

Browse files
committed
Rename mod le -> utils
1 parent 8f95967 commit 6b63c44

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/block.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
//! fn from_seed(seed: Self::Seed) -> Self {
4040
//! let core = MyRngCore {
4141
//! // ...
42-
//! # state: rand_core::le::read_words(&seed),
42+
//! # state: rand_core::utils::read_words(&seed),
4343
//! };
4444
//! MyRng(BlockRng::new(core))
4545
//! }
@@ -81,7 +81,7 @@
8181
//! [`SeedableRng`]: crate::SeedableRng
8282
//! [`rand::rngs::ReseedingRng`]: https://docs.rs/rand/latest/rand/rngs/struct.ReseedingRng.html
8383
84-
use crate::le::Word;
84+
use crate::utils::Word;
8585
use core::fmt;
8686

8787
/// A random (block) generator

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use core::{fmt, ops::DerefMut};
1717

1818
pub mod block;
19-
pub mod le;
19+
pub mod utils;
2020
mod word;
2121

2222
/// Implementation-level interface for RNGs
@@ -51,7 +51,7 @@ mod word;
5151
///
5252
/// Typically an RNG will implement only one of the methods available
5353
/// in this trait directly, then use the helper functions from the
54-
/// [`le` module](crate::le) to implement the other methods.
54+
/// [`utils`] module to implement the other methods.
5555
///
5656
/// Note that implementors of [`RngCore`] also automatically implement
5757
/// the [`TryRngCore`] trait with the `Error` associated type being
@@ -507,7 +507,7 @@ mod test {
507507
type Seed = [u8; 8];
508508

509509
fn from_seed(seed: Self::Seed) -> Self {
510-
let x: [u64; 1] = le::read_words(&seed);
510+
let x: [u64; 1] = utils::read_words(&seed);
511511
SeedableNum(x[0])
512512
}
513513
}
File renamed without changes.

0 commit comments

Comments
 (0)