aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2022-04-12 13:44:35 -0700
committerJack O'Connor <[email protected]>2022-04-12 13:44:35 -0700
commit7692ba52e215fdec43b2b13159692fa20409f06c (patch)
treef43e55fe4b4d7627e32e5003e6277c2b3add2280 /README.md
parent9114ff8ed1818f1d9831f1b8963a469b2f9e9438 (diff)
slight simplification in the README example code
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 721c462..c4bcc13 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);