Skip to content

Fix typos: correct spelling of "interpreter", "translation" and "resource" #812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/interpreter/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ pub(super) fn from_txdata<'txin>(
// so it's easy enough to keep track of all uses.
//
// In particular, this return value will be put into the `script_code` member of
// the `Interpreter` script; the iterpreter logic does the right thing with it.
// the `Interpreter` script; the interpreter logic does the right thing with it.
Some(tap_script),
))
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ impl ToPublicKey for bitcoin::secp256k1::XOnlyPublicKey {
pub trait Translator<P: MiniscriptKey> {
/// The public key (and associated hash types that this translator converts to.
type TargetPk: MiniscriptKey;
/// An error that may occur during transalation.
/// An error that may occur during translation.
type Error;

/// Translates keys.
Expand Down
2 changes: 1 addition & 1 deletion src/miniscript/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ where

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