From 32ef10a23bde70736ff652ca00784ea4bb57df68 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 16 Apr 2025 13:35:36 +0200 Subject: [PATCH] docs(snix/castore/path): fix docstring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This returns as a [PathComponent], not as bytes. Change-Id: Ia6df19be6f3060b28f8be6b74f3f3f443a536f8a Reviewed-on: https://cl.snix.dev/c/snix/+/30327 Autosubmit: Florian Klink Reviewed-by: Domen Kožar Tested-by: besadii --- snix/castore/src/path/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snix/castore/src/path/mod.rs b/snix/castore/src/path/mod.rs index 31df08365..8173b9a80 100644 --- a/snix/castore/src/path/mod.rs +++ b/snix/castore/src/path/mod.rs @@ -112,7 +112,8 @@ impl Path { iter } - /// Returns the final component of the Path, if there is one, in bytes. + /// Returns the final component of the Path, if there is one, as a + /// [PathComponent]. pub fn file_name(&self) -> Option { self.components().last() }