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:
parent
5286d0ab0c
commit
a2efafcf9a
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue