Fix some typos. (#1472)
This commit is contained in:
parent
1e381d13ee
commit
e4874a6dd7
@ -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]) {
|
||||
|
@ -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())?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user