Skip to content

Commit

Permalink
result -> finalize in readme (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai committed Jul 5, 2020
1 parent 22f903a commit afc167f
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 @@ -94,7 +94,7 @@ let data = b"Hello world!";
hasher.update(data);
// `update` can be called repeatedly and is generic over `AsRef<[u8]>`
hasher.update("String data");
// Note that calling `result()` consumes hasher
// Note that calling `finalize()` consumes hasher
let hash = hasher.finalize();
println!("Result: {:x}", hash);
```
Expand Down

0 comments on commit afc167f

Please sign in to comment.