docs(snix/castore/path): fix docstring

This returns as a [PathComponent], not as bytes.

Change-Id: Ia6df19be6f3060b28f8be6b74f3f3f443a536f8a
Reviewed-on: https://cl.snix.dev/c/snix/+/30327
Autosubmit: Florian Klink <flokli@flokli.de>
Reviewed-by: Domen Kožar <domen@cachix.org>
Tested-by: besadii
This commit is contained in:
Florian Klink 2025-04-16 13:35:36 +02:00 committed by clbot
parent c9082a586c
commit 32ef10a23b

View file

@ -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<PathComponent> {
self.components().last()
}