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
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 ( )
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 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//!
Original file line number Diff line number Diff 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]
You can’t perform that action at this time.
0 commit comments