Fix some typos. (#1472)

This commit is contained in:
Bruce Mitchener 2024-07-20 15:42:52 +07:00 committed by GitHub
parent 1e381d13ee
commit e4874a6dd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
///
/// # Panics
///
/// If `dst` has insufficent space (`4*dst.len() < src.len()`).
/// If `dst` has insufficient space (`4*dst.len() < src.len()`).
#[inline]
#[track_caller]
pub fn read_u32_into(src: &[u8], dst: &mut [u32]) {
@ -29,7 +29,7 @@ pub fn read_u32_into(src: &[u8], dst: &mut [u32]) {
///
/// # Panics
///
/// If `dst` has insufficent space (`8*dst.len() < src.len()`).
/// If `dst` has insufficient space (`8*dst.len() < src.len()`).
#[inline]
#[track_caller]
pub fn read_u64_into(src: &[u8], dst: &mut [u64]) {

View File

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