docs(nix-compat/nixhash): fix reference

Change-Id: I95c35a1405601c6f79cbc03462ab7c7cd6f08f2a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10397
Tested-by: BuildkiteCI
Reviewed-by: edef <edef@edef.eu>
Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
Florian Klink 2023-12-21 17:20:48 +02:00 committed by clbot
parent 1c3ea9d83d
commit ca0a8f5603

View file

@ -42,7 +42,7 @@ impl NixHash {
} }
/// Constructs a [NixHash] from the Nix default hash format, /// Constructs a [NixHash] from the Nix default hash format,
/// the inverse of [to_nix_hex_string]. /// the inverse of [Self::to_nix_hex_string].
pub fn from_nix_hex_str(s: &str) -> Option<Self> { pub fn from_nix_hex_str(s: &str) -> Option<Self> {
let (tag, digest) = s.split_once(':')?; let (tag, digest) = s.split_once(':')?;