Skip to content

Commit

Permalink
Fix semver breaking Display change of ChildNumber
Browse files Browse the repository at this point in the history
Fixes rust-bitcoin#608. In rust-bitcoin#567 the Display impl for ChildNumber was
consciously changed, assuming the semver break would not
affect any correctly implemented downstream projects. We
were wrong.
  • Loading branch information
sgeisler committed Jun 8, 2021
1 parent f11f09d commit 531b11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/bip32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ impl fmt::Display for ChildNumber {
ChildNumber::Hardened { index } => {
fmt::Display::fmt(&index, f)?;
let alt = f.alternate();
f.write_str(if alt { "'" } else { "h" })
f.write_str(if alt { "h" } else { "'" })
},
ChildNumber::Normal { index } => fmt::Display::fmt(&index, f),
}
Expand Down

0 comments on commit 531b11a

Please sign in to comment.