diff options
author | Florian Klink <flokli@flokli.de> | 2023-08-19T10·41+0200 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2023-08-19T11·41+0000 |
commit | 311752412bea93aeac5642e7f55c09d12b00d196 (patch) | |
tree | dfba9d44d6b70965fe3db6e8bd25563239010619 | |
parent | 999b2d69952602936caca72e8eb2dced4d08c382 (diff) |
docs(tvix/nix-compat/store_path): fix broken docstr reference r/6490
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>
-rw-r--r-- | tvix/nix-compat/src/store_path/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/nix-compat/src/store_path/mod.rs b/tvix/nix-compat/src/store_path/mod.rs index 2712a7548f2e..781e32932563 100644 --- a/tvix/nix-compat/src/store_path/mod.rs +++ b/tvix/nix-compat/src/store_path/mod.rs @@ -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), |