What changed, and why it matters
This commit corrects a single-word typo in a documentation comment. The comment for the Decodable trait incorrectly said 'encoded' and now correctly says 'decoded'. No code behavior changes.
Recommended action
No action needed; this is a non-functional documentation typo fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff changes only a Rust doc comment on the Decodable trait in bitcoin/src/consensus/encode.rs. The trait’s actual functionality (decoding from a reader) is unchanged, as are all implementations and call sites.
Changed components
bitcoin/src/consensus/encode.rs documentation commentInspect captured patch +1 / −1
diff --git a/bitcoin/src/consensus/encode.rs b/bitcoin/src/consensus/encode.rs
index a4919edb..eafe8212 100644
--- a/bitcoin/src/consensus/encode.rs
+++ b/bitcoin/src/consensus/encode.rs
@@ -261,7 +261,7 @@ pub trait Encodable {
fn consensus_encode<W: Write + ?Sized>(&self, writer: &mut W) -> Result<usize, io::Error>;
}
-/// Data which can be encoded in a consensus-consistent way.
+/// Data which can be decoded in a consensus-consistent way.
pub trait Decodable: Sized {
/// Decodes `Self` from a size-limited reader.
///
Risk score
Our methodology →Why this scored 15/100
Human-validated context
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
No validated notes yet.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.