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".
This commit is contained in:
Tobin Harding 2021-11-25 09:51:30 +11:00
parent 5286d0ab0c
commit a2efafcf9a
1 changed files with 2 additions and 2 deletions

View File

@ -122,10 +122,10 @@ impl TapLeafHash {
let mut eng = TapLeafHash::engine(); let mut eng = TapLeafHash::engine();
ver.as_u8() ver.as_u8()
.consensus_encode(&mut eng) .consensus_encode(&mut eng)
.expect("engines don't err"); .expect("engines don't error");
script script
.consensus_encode(&mut eng) .consensus_encode(&mut eng)
.expect("engines don't err"); .expect("engines don't error");
TapLeafHash::from_engine(eng) TapLeafHash::from_engine(eng)
} }
} }