diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 7fd08a97f1f20..837e1ab130caf 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -2453,7 +2453,7 @@ impl Path { /// If the path is a normal file, this is the file name. If it's the path of a directory, this /// is the directory name. /// - /// Returns [`None`] if the path terminates in `..`. + /// Returns [`None`] if the path cannot be named (without accessing the filesystem) /// /// # Examples ///