Skip to content

Commit 0316e58

Browse files
committed
Merge #596: fix: Typo in descriptor docs
5983d52 fix: Typo in descriptor docs (Einherjar) Pull request description: Fixes the `Txin` typo in the `max_weight_to_satisfy` to correct `TxIn` I've noticed this while browsing the docs. ACKs for top commit: apoelstra: ACK 5983d52 Tree-SHA512: eafd989febfa2b982116b4eaf5275d6d8b6b799c02167a2e2323df0b8b001b5d88b76c32fc7bc60005cd07edbf38e0eb0714d9bb1d3b6bf636851001288277f0
2 parents df9fffb + 5983d52 commit 0316e58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/descriptor/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ impl<Pk: MiniscriptKey> Descriptor<Pk> {
319319
/// for i in 0..transaction.input.len() {
320320
/// assert_eq!(
321321
/// descriptor_for_input[i].max_weight_to_satisfy(),
322-
/// transaction.input[i].segwit_weight() - Txin::default().segwit_weight()
322+
/// transaction.input[i].segwit_weight() - TxIn::default().segwit_weight()
323323
/// );
324324
/// }
325325
/// ```
@@ -330,7 +330,7 @@ impl<Pk: MiniscriptKey> Descriptor<Pk> {
330330
/// for i in 0..transaction.input.len() {
331331
/// assert_eq!(
332332
/// descriptor_for_input[i].max_weight_to_satisfy(),
333-
/// transaction.input[i].legacy_weight() - Txin::default().legacy_weight()
333+
/// transaction.input[i].legacy_weight() - TxIn::default().legacy_weight()
334334
/// );
335335
/// }
336336
/// ```

0 commit comments

Comments
 (0)