Skip to content

Commit 5983d52

Browse files
fix: Typo in descriptor docs
Fixes the `Txin` typo in the `max_weight_to_satisfy` to correct `TxIn` I've noticed this while browsing the docs.
1 parent df9fffb commit 5983d52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/descriptor/mod.rs

Lines changed: 2 additions & 2 deletions
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)