Merge rust-bitcoin/rust-bitcoin#4647: fix: typo in error message

c642bebeb7 fix typo in error message (Afounso Souza)

Pull request description:

  The error message contains "do you have an hardened child number" but should be "do you have a hardened child number"


ACKs for top commit:
  tcharding:
    ACK c642bebeb7
  apoelstra:
    ACK c642bebeb7c452cdb81977f4fb9e36f2b1872be7; successfully ran local tests


Tree-SHA512: f8922d00a7bb687284387f880a1beeba6b1037d1885ea24c8162361880b250e6b44767c076ab40c6cd3cb9c667d28147413cc8257c46cd1383cc999c06735321
This commit is contained in:
Andrew Poelstra 2025-07-02 15:21:38 +00:00
commit a000230301
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ impl From<Infallible> for IndexOutOfRangeError {
impl fmt::Display for IndexOutOfRangeError { impl fmt::Display for IndexOutOfRangeError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "index {} out of range [0, 2^31 - 1] (do you have an hardened child number, rather than an index?)", self.index) write!(f, "index {} out of range [0, 2^31 - 1] (do you have a hardened child number, rather than an index?)", self.index)
} }
} }