Skip to content

Commit dbfde3e

Browse files
committed
f - correct expect message
1 parent 5163ff8 commit dbfde3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/offers/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub(crate) trait Bech32Encode: AsRef<[u8]> + TryFrom<Vec<u8>, Error=ParseError>
4646
/// Formats the message using bech32-encoding.
4747
fn fmt_bech32_str(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
4848
bech32::encode_without_checksum_to_fmt(f, Self::BECH32_HRP, self.as_ref().to_base32())
49-
.expect("HRP is valid").unwrap();
49+
.expect("HRP is invalid").unwrap();
5050

5151
Ok(())
5252
}

0 commit comments

Comments
 (0)