Skip to content

Commit

Permalink
slight simplification in the README example code
Browse files Browse the repository at this point in the history
  • Loading branch information
oconnor663 committed Apr 12, 2022
1 parent 9114ff8 commit 7692ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7692ba5

Please sign in to comment.