File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -215,13 +215,13 @@ where
215
215
self . set_pos_unchecked ( pos) ;
216
216
}
217
217
218
- /// Return size of the internall buffer in bytes.
218
+ /// Return size of the internal buffer in bytes.
219
219
#[ inline( always) ]
220
220
pub fn size ( & self ) -> usize {
221
221
BlockSize :: USIZE
222
222
}
223
223
224
- /// Return number of remaining bytes in the internall buffer.
224
+ /// Return number of remaining bytes in the internal buffer.
225
225
#[ inline( always) ]
226
226
pub fn remaining ( & self ) -> usize {
227
227
self . size ( ) - self . get_pos ( )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pub trait Sealed {
7
7
/// buffer code this function always returns true.
8
8
fn invariant ( pos : usize , block_size : usize ) -> bool ;
9
9
10
- /// Split input data into slice fo blocks and tail.
10
+ /// Split input data into slice of blocks and tail.
11
11
fn split_blocks < N : ArrayLength < u8 > > ( data : & [ u8 ] ) -> ( & [ Block < N > ] , & [ u8 ] ) ;
12
12
}
13
13
Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ pub trait Padding<BlockSize: ArrayLength<u8>> {
47
47
48
48
/// Unpad data in the `block`.
49
49
///
50
- /// Returns `Err(UnpadError)` if the block containts malformed padding.
50
+ /// Returns `Err(UnpadError)` if the block contains malformed padding.
51
51
fn unpad ( block : & Block < BlockSize > ) -> Result < & [ u8 ] , UnpadError > ;
52
52
53
53
/// Unpad data in the `blocks`.
54
54
///
55
- /// Returns `Err(UnpadError)` if the block containts malformed padding.
55
+ /// Returns `Err(UnpadError)` if the block contains malformed padding.
56
56
fn unpad_blocks ( blocks : & [ Block < BlockSize > ] ) -> Result < & [ u8 ] , UnpadError > {
57
57
let bs = BlockSize :: USIZE ;
58
58
let res_len = match ( blocks. last ( ) , Self :: TYPE ) {
Original file line number Diff line number Diff line change 32
32
//! // it's possible to use several literals (results will be concatenated)
33
33
//! let bytes2 = hex!(
34
34
//! "00010203 04050607" // first half
35
- //! "08090a0b 0c0d0e0f" // second hald
35
+ //! "08090a0b 0c0d0e0f" // second half
36
36
//! );
37
37
//! assert_eq!(bytes2, bytes);
38
38
//!
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pub extern crate core as __core;
11
11
/// Macro for defining opaque `Debug` implementation.
12
12
///
13
13
/// 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
15
15
/// undesirable to leak internal state, which can happen for example through
16
16
/// uncareful logging.
17
17
#[ macro_export]
You can’t perform that action at this time.
0 commit comments