Skip to content

Commit 52f9125

Browse files
authored
Fix some typos (#806)
1 parent e05a820 commit 52f9125

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

block-buffer/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,13 @@ where
215215
self.set_pos_unchecked(pos);
216216
}
217217

218-
/// Return size of the internall buffer in bytes.
218+
/// Return size of the internal buffer in bytes.
219219
#[inline(always)]
220220
pub fn size(&self) -> usize {
221221
BlockSize::USIZE
222222
}
223223

224-
/// Return number of remaining bytes in the internall buffer.
224+
/// Return number of remaining bytes in the internal buffer.
225225
#[inline(always)]
226226
pub fn remaining(&self) -> usize {
227227
self.size() - self.get_pos()

block-buffer/src/sealed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub trait Sealed {
77
/// buffer code this function always returns true.
88
fn invariant(pos: usize, block_size: usize) -> bool;
99

10-
/// Split input data into slice fo blocks and tail.
10+
/// Split input data into slice of blocks and tail.
1111
fn split_blocks<N: ArrayLength<u8>>(data: &[u8]) -> (&[Block<N>], &[u8]);
1212
}
1313

block-padding/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ pub trait Padding<BlockSize: ArrayLength<u8>> {
4747

4848
/// Unpad data in the `block`.
4949
///
50-
/// Returns `Err(UnpadError)` if the block containts malformed padding.
50+
/// Returns `Err(UnpadError)` if the block contains malformed padding.
5151
fn unpad(block: &Block<BlockSize>) -> Result<&[u8], UnpadError>;
5252

5353
/// Unpad data in the `blocks`.
5454
///
55-
/// Returns `Err(UnpadError)` if the block containts malformed padding.
55+
/// Returns `Err(UnpadError)` if the block contains malformed padding.
5656
fn unpad_blocks(blocks: &[Block<BlockSize>]) -> Result<&[u8], UnpadError> {
5757
let bs = BlockSize::USIZE;
5858
let res_len = match (blocks.last(), Self::TYPE) {

hex-literal/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
//! // it's possible to use several literals (results will be concatenated)
3333
//! let bytes2 = hex!(
3434
//! "00010203 04050607" // first half
35-
//! "08090a0b 0c0d0e0f" // second hald
35+
//! "08090a0b 0c0d0e0f" // second half
3636
//! );
3737
//! assert_eq!(bytes2, bytes);
3838
//!

opaque-debug/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub extern crate core as __core;
1111
/// Macro for defining opaque `Debug` implementation.
1212
///
1313
/// It will use the following format: "StructName { ... }". While it's
14-
/// convinient to have it (e.g. for including into other structs), it could be
14+
/// convenient to have it (e.g. for including into other structs), it could be
1515
/// undesirable to leak internal state, which can happen for example through
1616
/// uncareful logging.
1717
#[macro_export]

0 commit comments

Comments
 (0)