Skip to content

chore: fix some minor issues in comments #1195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inout/src/reserved.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl<T> 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();
Expand Down
2 changes: 1 addition & 1 deletion opaque-debug/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//! assert_eq!(format!("{:?}", val), "CryptoStuff { ... }")
//! ```
//!
//! The macro also support generic paramters:
//! The macro also support generic parameters:
//! ```
//! pub struct GenericCryptoStuff<K> {
//! key: K,
Expand Down
4 changes: 2 additions & 2 deletions zeroize/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vec<T>>, 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();
}

Expand Down Expand Up @@ -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: Zeroize>(Z);
Expand Down
Loading