From e716109db95a086bbce188ffba4e6b81096d8ccd Mon Sep 17 00:00:00 2001 From: tanhuaan Date: Tue, 5 Aug 2025 16:11:42 +0800 Subject: [PATCH] chore: fix some minor issues in comments Signed-off-by: tanhuaan --- inout/src/reserved.rs | 2 +- opaque-debug/src/lib.rs | 2 +- zeroize/src/lib.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inout/src/reserved.rs b/inout/src/reserved.rs index abc0c091..635d323e 100644 --- a/inout/src/reserved.rs +++ b/inout/src/reserved.rs @@ -95,7 +95,7 @@ impl InOutBufReserved<'_, '_, T> { } /// Split buffer into `InOutBuf` with input length and mutable slice pointing to - /// the reamining reserved suffix. + /// the remaining reserved suffix. pub fn split_reserved(&mut self) -> (InOutBuf<'_, '_, T>, &mut [T]) { let in_len = self.get_in_len(); let out_len = self.get_out_len(); diff --git a/opaque-debug/src/lib.rs b/opaque-debug/src/lib.rs index 854ad52e..e1a697d8 100644 --- a/opaque-debug/src/lib.rs +++ b/opaque-debug/src/lib.rs @@ -20,7 +20,7 @@ //! assert_eq!(format!("{:?}", val), "CryptoStuff { ... }") //! ``` //! -//! The macro also support generic paramters: +//! The macro also support generic parameters: //! ``` //! pub struct GenericCryptoStuff { //! key: K, diff --git a/zeroize/src/lib.rs b/zeroize/src/lib.rs index f1af6303..8d7b915f 100644 --- a/zeroize/src/lib.rs +++ b/zeroize/src/lib.rs @@ -400,7 +400,7 @@ where // Ensures self is None and that the value was dropped. Without the take, the drop // of the (zeroized) value isn't called, which might lead to a leak or other // unexpected behavior. For example, if this were Option>, the above call to - // zeroize would not free the allocated memory, but the the `take` call will. + // zeroize would not free the allocated memory, but the `take` call will. self.take(); } @@ -617,7 +617,7 @@ impl Zeroize for CString { } } -/// `Zeroizing` is a a wrapper for any `Z: Zeroize` type which implements a +/// `Zeroizing` is a wrapper for any `Z: Zeroize` type which implements a /// `Drop` handler which zeroizes dropped values. #[derive(Debug, Default, Eq, PartialEq)] pub struct Zeroizing(Z);