Skip to content

Commit 3159fea

Browse files
committed
Changed docs to be less misleading in path::file_name(&self)
1 parent 39dc268 commit 3159fea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@ impl Path {
24532453
/// If the path is a normal file, this is the file name. If it's the path of a directory, this
24542454
/// is the directory name.
24552455
///
2456-
/// Returns [`None`] if the path terminates in `..`.
2456+
/// Returns [`None`] if the path cannot be named (without accessing the filesystem)
24572457
///
24582458
/// # Examples
24592459
///

0 commit comments

Comments
 (0)