diff options
Diffstat (limited to 'tvix/nix-compat/src/nixhash/mod.rs')
-rw-r--r-- | tvix/nix-compat/src/nixhash/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/nix-compat/src/nixhash/mod.rs b/tvix/nix-compat/src/nixhash/mod.rs index 3b2810b8b0bf..9586473d1b9a 100644 --- a/tvix/nix-compat/src/nixhash/mod.rs +++ b/tvix/nix-compat/src/nixhash/mod.rs @@ -65,8 +65,8 @@ impl TryFrom<(HashAlgo, &[u8])> for NixHash { } /// Constructs a new [NixHash] by specifying [HashAlgo] and digest. -// It can fail if the passed digest length doesn't match what's expected for -// the passed algo. +/// It can fail if the passed digest length doesn't match what's expected for +/// the passed algo. pub fn from_algo_and_digest(algo: HashAlgo, digest: &[u8]) -> Result<NixHash> { if digest.len() != algo.digest_length() { return Err(Error::InvalidEncodedDigestLength(digest.len(), algo)); |