What changed, and why it matters
This commit fixes two spelling mistakes in code comments: adding a missing space in a comment about Rust formatting and changing 'a authentication tag' to 'an authentication tag'. No program logic, cryptographic code, or behavior was changed.
No security action needed. This is a documentation/comment-only cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies only comments in chacha20_poly1305/src/lib.rs. One change corrects a spacing typo in a clippy lint explanation, and the other fixes grammar in the doc comment for the ChaCha20Poly1305 struct. No executable code, API signatures, or cryptographic operations were altered.
Changed components
chacha20_poly1305/src/lib.rs (comments only)Inspect captured patch +2 / −2
diff --git a/chacha20_poly1305/src/lib.rs b/chacha20_poly1305/src/lib.rs
index a8064221..388bb23a 100644
--- a/chacha20_poly1305/src/lib.rs
+++ b/chacha20_poly1305/src/lib.rs
@@ -16,7 +16,7 @@
// Exclude lints we don't think are valuable.
#![allow(clippy::needless_question_mark)] // https://github.com/rust-bitcoin/rust-bitcoin/pull/2134
#![allow(clippy::manual_range_contains)] // More readable than clippy's format.
-#![allow(clippy::uninlined_format_args)] // Allow `format!("{}", x)`instead of enforcing `format!("{x}")`
+#![allow(clippy::uninlined_format_args)] // Allow `format!("{}", x)` instead of enforcing `format!("{x}")`
#[cfg(feature = "alloc")]
extern crate alloc;
@@ -66,7 +66,7 @@ impl std::error::Error for Error {
}
}
-/// Encrypt and decrypt content along with a authentication tag.
+/// Encrypt and decrypt content along with an authentication tag.
pub struct ChaCha20Poly1305 {
key: Key,
nonce: Nonce,
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.