diff --git a/serialize/src/lib.rs b/serialize/src/lib.rs index c0a945c33..d84be519c 100644 --- a/serialize/src/lib.rs +++ b/serialize/src/lib.rs @@ -268,14 +268,14 @@ pub trait CanonicalSerializeHashExt: CanonicalSerialize { fn hash(&self) -> Output { let mut hasher = H::new(); self.serialize_compressed(HashMarshaller(&mut hasher)) - .expect("HashMarshaller::flush should be infaillible!"); + .expect("HashMarshaller::flush should be infallible!"); hasher.finalize() } fn hash_uncompressed(&self) -> Output { let mut hasher = H::new(); self.serialize_uncompressed(HashMarshaller(&mut hasher)) - .expect("HashMarshaller::flush should be infaillible!"); + .expect("HashMarshaller::flush should be infallible!"); hasher.finalize() } }