Skip to content

Commit e4874a6

Browse files
Fix some typos. (#1472)
1 parent 1e381d1 commit e4874a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rand_core/src/le.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
///
1616
/// # Panics
1717
///
18-
/// If `dst` has insufficent space (`4*dst.len() < src.len()`).
18+
/// If `dst` has insufficient space (`4*dst.len() < src.len()`).
1919
#[inline]
2020
#[track_caller]
2121
pub fn read_u32_into(src: &[u8], dst: &mut [u32]) {
@@ -29,7 +29,7 @@ pub fn read_u32_into(src: &[u8], dst: &mut [u32]) {
2929
///
3030
/// # Panics
3131
///
32-
/// If `dst` has insufficent space (`8*dst.len() < src.len()`).
32+
/// If `dst` has insufficient space (`8*dst.len() < src.len()`).
3333
#[inline]
3434
#[track_caller]
3535
pub fn read_u64_into(src: &[u8], dst: &mut [u64]) {

rand_core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ pub trait SeedableRng: Sized {
419419

420420
/// Create a new PRNG seeded from a potentially fallible `Rng`.
421421
///
422-
/// See [`from_rng`][SeedableRng::from_rng] docs for more infromation.
422+
/// See [`from_rng`][SeedableRng::from_rng] docs for more information.
423423
fn try_from_rng<R: TryRngCore>(mut rng: R) -> Result<Self, R::Error> {
424424
let mut seed = Self::Seed::default();
425425
rng.try_fill_bytes(seed.as_mut())?;

0 commit comments

Comments
 (0)