Skip to content

Commit

Permalink
Fix doc of std::fs::canonicalize
Browse files Browse the repository at this point in the history
Point out that the final component of the path name might be a filename
(and not a directory name). Previously, the doc said that all components
of the path must be directory names, when it actually only ment all but
the final one.

Fixes #54056.
  • Loading branch information
tbu- committed Dec 15, 2018
1 parent 0a1b226 commit f61686a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/fs.rs
Expand Up @@ -1729,7 +1729,7 @@ pub fn read_link<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> {
/// limited to just these cases:
///
/// * `path` does not exist.
/// * A component in path is not a directory.
/// * A non-final component in path is not a directory.
///
/// # Examples
///
Expand Down

0 comments on commit f61686a

Please sign in to comment.