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:
parent
c9082a586c
commit
32ef10a23b
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue