From a2efafcf9a166f26e3170eaf5a1c6d8710a72615 Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Thu, 25 Nov 2021 09:51:30 +1100 Subject: [PATCH] Use error instead of err In the name of uniformity use the same error message as argument to `expect` througout the codebase. Use "engines don't error" instead of "engines don't err". --- src/util/taproot.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/taproot.rs b/src/util/taproot.rs index 0330d93d..a511fc9f 100644 --- a/src/util/taproot.rs +++ b/src/util/taproot.rs @@ -122,10 +122,10 @@ impl TapLeafHash { let mut eng = TapLeafHash::engine(); ver.as_u8() .consensus_encode(&mut eng) - .expect("engines don't err"); + .expect("engines don't error"); script .consensus_encode(&mut eng) - .expect("engines don't err"); + .expect("engines don't error"); TapLeafHash::from_engine(eng) } }