Skip to content

Commit

Permalink
Use correct variable name in Base64 hash example (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsaarelm committed Apr 6, 2022
1 parent f430ed2 commit d86dcc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -105,7 +105,7 @@ If you need to serialize hash value into string, you can use crates like [`base1
use base64ct::{Base64, Encoding};

let base64_hash = Base64::encode_string(&hash);
println!("Base64-encoded hash: {}", hex_hash);
println!("Base64-encoded hash: {}", base64_hash);

let hex_hash = base16ct::lower::encode_string(&hash);
println!("Hex-encoded hash: {}", hex_hash);
Expand Down

0 comments on commit d86dcc0

Please sign in to comment.