Skip to content

Commit e716109

Browse files
committed
chore: fix some minor issues in comments
Signed-off-by: tanhuaan <tanhuaan@outlook.com>
1 parent 8a82158 commit e716109

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

inout/src/reserved.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<T> InOutBufReserved<'_, '_, T> {
9595
}
9696

9797
/// Split buffer into `InOutBuf` with input length and mutable slice pointing to
98-
/// the reamining reserved suffix.
98+
/// the remaining reserved suffix.
9999
pub fn split_reserved(&mut self) -> (InOutBuf<'_, '_, T>, &mut [T]) {
100100
let in_len = self.get_in_len();
101101
let out_len = self.get_out_len();

opaque-debug/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! assert_eq!(format!("{:?}", val), "CryptoStuff { ... }")
2121
//! ```
2222
//!
23-
//! The macro also support generic paramters:
23+
//! The macro also support generic parameters:
2424
//! ```
2525
//! pub struct GenericCryptoStuff<K> {
2626
//! key: K,

zeroize/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ where
400400
// Ensures self is None and that the value was dropped. Without the take, the drop
401401
// of the (zeroized) value isn't called, which might lead to a leak or other
402402
// unexpected behavior. For example, if this were Option<Vec<T>>, the above call to
403-
// zeroize would not free the allocated memory, but the the `take` call will.
403+
// zeroize would not free the allocated memory, but the `take` call will.
404404
self.take();
405405
}
406406

@@ -617,7 +617,7 @@ impl Zeroize for CString {
617617
}
618618
}
619619

620-
/// `Zeroizing` is a a wrapper for any `Z: Zeroize` type which implements a
620+
/// `Zeroizing` is a wrapper for any `Z: Zeroize` type which implements a
621621
/// `Drop` handler which zeroizes dropped values.
622622
#[derive(Debug, Default, Eq, PartialEq)]
623623
pub struct Zeroizing<Z: Zeroize>(Z);

0 commit comments

Comments
 (0)