docs(tvix/nix-compat/store_path): fix broken docstr reference

Change-Id: Ie95ac265f8707e138c6a7b529760650d211f259d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9087
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
Florian Klink 2023-08-19 12:41:24 +02:00 committed by flokli
parent 999b2d6995
commit 311752412b

View file

@ -102,8 +102,8 @@ impl StorePath {
}
/// Construct a [StorePath] from an absolute store path string.
/// This is equivalent to calling [StorePath::from_string], but stripping
/// the [STORE_DIR_WITH_SLASH] prefix before.
/// This is equivalent to calling [StorePath::from_bytes], but stripping the
/// [STORE_DIR_WITH_SLASH] prefix before.
pub fn from_absolute_path(s: &[u8]) -> Result<StorePath, Error> {
match s.strip_prefix(STORE_DIR_WITH_SLASH.as_bytes()) {
Some(s_stripped) => Self::from_bytes(s_stripped),