diff options
| author | Jack O'Connor <[email protected]> | 2022-04-12 13:44:35 -0700 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2022-04-12 13:44:35 -0700 |
| commit | 7692ba52e215fdec43b2b13159692fa20409f06c (patch) | |
| tree | f43e55fe4b4d7627e32e5003e6277c2b3add2280 /README.md | |
| parent | 9114ff8ed1818f1d9831f1b8963a469b2f9e9438 (diff) | |
slight simplification in the README example code
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
