Fix: IndexOutOfBoundsError Display impl has values in wrong order

This commit is contained in:
junderw 2023-09-11 11:25:21 -07:00
parent 26c27d9071
commit c98106ef2e
No known key found for this signature in database
GPG Key ID: B256185D3A971908
1 changed files with 2 additions and 2 deletions

View File

@ -798,12 +798,12 @@ impl fmt::Display for IndexOutOfBoundsError {
Inputs { ref index, ref length } => write!(
f,
"index {} is out-of-bounds for PSBT inputs vector length {}",
length, index
index, length
),
TxInput { ref index, ref length } => write!(
f,
"index {} is out-of-bounds for PSBT unsigned tx input vector length {}",
length, index
index, length
),
}
}