What changed, and why it matters
This commit fixes a spelling mistake in an error message: 'emoty' was corrected to 'empty'. It does not change any program logic, behavior, or security properties.
No security action needed. Treat as a routine documentation/typo fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change is a one-character typo correction inside a panic message string in primitives/src/merkle_tree.rs. The expect call and its surrounding logic are unchanged; only the human-readable panic text is corrected from ‘nodes is not emoty’ to ‘nodes is not empty’.
Changed components
primitives/src/merkle_tree.rsInspect captured patch +1 / −1
diff --git a/primitives/src/merkle_tree.rs b/primitives/src/merkle_tree.rs
index f90d2926..a58df4c2 100644
--- a/primitives/src/merkle_tree.rs
+++ b/primitives/src/merkle_tree.rs
@@ -131,7 +131,7 @@ fn calculate_root_batched(mut nodes: Vec<[u8; 32]>) -> Option<[u8; 32]> {
// if odd count, duplicate last element
if nodes.len() % 2 != 0 {
- let last = *nodes.last().expect("nodes is not emoty");
+ let last = *nodes.last().expect("nodes is not empty");
nodes.push(last);
}
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.