Skip to content

Commit b7d5582

Browse files
committed
Merge #812: Fix typos: correct spelling of "interpreter", "translation" and "resource"
be0c832 Update lib.rs (leopardracer) 208c5bb Update context.rs (leopardracer) 56cd92c Update inner.rs (leopardracer) Pull request description: This PR fixes several typos in comments and documentation: - "iterpreter" -> "interpreter" in src/interpreter/inner.rs - "transalation" -> "translation" in src/lib.rs - "reource" -> "resource" in src/miniscript/context.rs These changes only affect comments and do not modify any functional code. ACKs for top commit: apoelstra: ACK be0c832; successfully ran local tests Tree-SHA512: df59495e761b841796453cadcc0e6c69ee5d9c117ff2eddac8898253bb79418de32c23de436ad4bf1dfe6669a8d5bb75e52561269e5ed3d62cf5826df0e82102
2 parents 4a38c76 + be0c832 commit b7d5582

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/interpreter/inner.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ pub(super) fn from_txdata<'txin>(
233233
// so it's easy enough to keep track of all uses.
234234
//
235235
// In particular, this return value will be put into the `script_code` member of
236-
// the `Interpreter` script; the iterpreter logic does the right thing with it.
236+
// the `Interpreter` script; the interpreter logic does the right thing with it.
237237
Some(tap_script),
238238
))
239239
} else {

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ impl ToPublicKey for bitcoin::secp256k1::XOnlyPublicKey {
298298
pub trait Translator<P: MiniscriptKey> {
299299
/// The public key (and associated hash types that this translator converts to.
300300
type TargetPk: MiniscriptKey;
301-
/// An error that may occur during transalation.
301+
/// An error that may occur during translation.
302302
type Error;
303303

304304
/// Translates keys.

src/miniscript/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ where
331331

332332
/// Check top level consensus rules.
333333
// All the previous check_ were applied at each fragment while parsing script
334-
// Because if any of sub-miniscripts failed the reource level check, the entire
334+
// Because if any of sub-miniscripts failed the resource level check, the entire
335335
// miniscript would also be invalid. However, there are certain checks like
336336
// in Bare context, only c:pk(key) (P2PK),
337337
// c:pk_h(key) (P2PKH), and thresh_m(k,...) up to n=3 are allowed

0 commit comments

Comments
 (0)