Skip to content

Commit

Permalink
Fix an off-by-one error in the docs for sha2 (#467)
Browse files Browse the repository at this point in the history
There are six total, and the docs mentioned "first two" and "last three"
= 5.

This appears to have been introduced in 75298d3, and based on the text
in this spot that was removed in that commit, this should read "last
four" instead.
  • Loading branch information
carols10cents committed Apr 17, 2023
1 parent 1fc6312 commit 6088619
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sha2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
//! Algorithmically, there are only 2 core algorithms: SHA-256 and SHA-512.
//! All other algorithms are just applications of these with different initial
//! hash values, and truncated to different digest bit lengths. The first two
//! algorithms in the list are based on SHA-256, while the last three on SHA-512.
//! algorithms in the list are based on SHA-256, while the last four are based
//! on SHA-512.
//!
//! # Usage
//!
Expand Down

0 comments on commit 6088619

Please sign in to comment.