diff --git a/README.md b/README.md index 721c4629d..c4bcc134c 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,7 @@ assert_eq!(hash1, hash2); let mut output = [0; 1000]; let mut output_reader = hasher.finalize_xof(); output_reader.fill(&mut output); -assert_eq!(&output[..32], hash1.as_bytes()); +assert_eq!(hash1, output[..32]); // Print a hash as hex. println!("{}", hash1);