Skip to content

Commit 5deec51

Browse files
committed
Merge #876: Fix typos in comments
cc0b834 Fix typos in comments (mlombardi) Pull request description: Fixes three typos found in the codebase: - `constuct` → `construct` (src/descriptor/mod.rs:159) - `satisified` → `satisfied` (src/miniscript/context.rs:786) ACKs for top commit: apoelstra: ACK cc0b834; successfully ran local tests Tree-SHA512: 47df803ad080a8151f7b975838b75911a1526864a5f942c39f354d354aa12f0cfd0fe130c201c4255edc61388d0e6d4392fd25f79771909abfd6a7c0b6b98398
2 parents 83a5214 + cc0b834 commit 5deec51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/descriptor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl<Pk: MiniscriptKey> Descriptor<Pk> {
156156

157157
/// Create a new pk descriptor
158158
pub fn new_pk(pk: Pk) -> Self {
159-
// roundabout way to constuct `c:pk_k(pk)`
159+
// roundabout way to construct `c:pk_k(pk)`
160160
let ms: Miniscript<Pk, BareCtx> = Miniscript::from_ast(Terminal::Check(Arc::new(
161161
Miniscript::from_ast(Terminal::PkK(pk)).expect("Type check cannot fail"),
162162
)))

src/miniscript/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ impl ScriptContext for BareCtx {
783783

784784
/// "No Checks Ecdsa" Context
785785
///
786-
/// Used by the "satisified constraints" iterator, which is intended to read
786+
/// Used by the "satisfied constraints" iterator, which is intended to read
787787
/// scripts off of the blockchain without doing any sanity checks on them.
788788
/// This context should *NOT* be used unless you know what you are doing.
789789
#[derive(Debug, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]

0 commit comments

Comments
 (0)