Skip to content

Commit

Permalink
Fix description of Hash::new
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Dec 12, 2020
1 parent 0ef1039 commit fcf5de1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cache/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ use std::string::ToString;
pub struct Hash([u8; 32]);

impl Hash {
/// Creates a new hash. Has to be encodable as a hex format.
/// Creates a new instance from 32 raw bytes.
/// Does not perform any hashing. In order to create a hash from data,
/// use `Hash::generate`.
pub fn new(bytes: [u8; 32]) -> Self {
Self(bytes)
}
Expand Down

0 comments on commit fcf5de1

Please sign in to comment.