What changed, and why it matters
This commit fixes two spelling mistakes: changing 'leafs' to 'leaves' in a code comment and adding the word 'the' in a rustfmt.toml comment. There are no code behavior changes, no security fixes, and no functional modifications.
No security action needed. Treat as a routine documentation/typo cleanup commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is purely cosmetic. In bitcoin/src/psbt/serialize.rs, a test module comment is corrected from ‘dumb script leafs’ to ‘dumb script leaves’. In rustfmt.toml, a comment is corrected from ‘This is number of characters’ to ‘This is the number of characters’. No executable code, serialization logic, or configuration values were altered.
Changed components
bitcoin/src/psbt/serialize.rs (comment only)rustfmt.toml (comment only)Inspect captured patch +2 / −2
diff --git a/bitcoin/src/psbt/serialize.rs b/bitcoin/src/psbt/serialize.rs
index c529df97..e0dea246 100644
--- a/bitcoin/src/psbt/serialize.rs
+++ b/bitcoin/src/psbt/serialize.rs
@@ -438,7 +438,7 @@ mod tests {
use crate::script::ScriptBufExt as _;
use crate::TapScriptBuf;
- // Composes tree matching a given depth map, filled with dumb script leafs,
+ // Composes tree matching a given depth map, filled with dumb script leaves,
// each of which consists of a single push-int op code, with int value
// increased for each consecutive leaf.
pub fn compose_taproot_builder<'map>(
diff --git a/rustfmt.toml b/rustfmt.toml
index 08c331b5..c3f75bec 100644
--- a/rustfmt.toml
+++ b/rustfmt.toml
@@ -4,7 +4,7 @@ tab_spaces = 4
newline_style = "Auto"
indent_style = "Block"
-max_width = 100 # This is number of characters.
+max_width = 100 # This is the number of characters.
# `use_small_heuristics` is ignored if the granular width config values are explicitly set.
use_small_heuristics = "Max" # "Max" == All granular width settings same as `max_width`.
# # Granular width configuration settings. These are percentages of `max_width`.
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.