From 311752412bea93aeac5642e7f55c09d12b00d196 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 19 Aug 2023 12:41:24 +0200 Subject: 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 Tested-by: BuildkiteCI Autosubmit: flokli --- tvix/nix-compat/src/store_path/mod.rs | 4 ++-- 1 file 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 { match s.strip_prefix(STORE_DIR_WITH_SLASH.as_bytes()) { Some(s_stripped) => Self::from_bytes(s_stripped), -- cgit 1.4.1