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() }