From fb29f698898d56a16606d66163fdf851c2e3022a Mon Sep 17 00:00:00 2001 From: aliendya54 Date: Mon, 1 Sep 2025 14:12:19 +0800 Subject: [PATCH] Fix Typos in Comment --- src/miniscript/lex.rs | 2 +- src/miniscript/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/miniscript/lex.rs b/src/miniscript/lex.rs index 040840908..1df1f2dd4 100644 --- a/src/miniscript/lex.rs +++ b/src/miniscript/lex.rs @@ -288,7 +288,7 @@ pub enum Error { InvalidInt { /// The bytes of the push that were attempted to be parsed. bytes: bitcoin::script::PushBytesBuf, - /// The error that occured. + /// The error that occurred. err: bitcoin::script::Error, }, /// Parsed an opcode outside of the Miniscript language. diff --git a/src/miniscript/mod.rs b/src/miniscript/mod.rs index 269f36a4d..e319304a2 100644 --- a/src/miniscript/mod.rs +++ b/src/miniscript/mod.rs @@ -270,7 +270,7 @@ mod private { } } - // non-const because Thresh::n is not becasue Vec::len is not (needs Rust 1.87) + // non-const because Thresh::n is not because Vec::len is not (needs Rust 1.87) /// The `multi` combinator. pub fn multi(thresh: crate::Threshold) -> Self { Self { @@ -281,7 +281,7 @@ mod private { } } - // non-const because Thresh::n is not becasue Vec::len is not + // non-const because Thresh::n is not because Vec::len is not /// The `multi` combinator. pub fn multi_a(thresh: crate::Threshold) -> Self { Self {