Skip to content

Commit ef780b5

Browse files
Apply suggestions from code review
Co-authored-by: Ibraheem Ahmed <[email protected]>
1 parent 81cb0d8 commit ef780b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/std/src/fs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3134,9 +3134,9 @@ pub fn set_permissions<P: AsRef<Path>>(path: P, perm: Permissions) -> io::Result
31343134
///
31353135
/// # Platform-specific behavior
31363136
///
3137-
/// Currently unimplmented on windows.
3137+
/// Currently unimplemented on Windows.
31383138
///
3139-
/// On unix platforms, this results in a [`FilesystemLoop`] error if the last element is a symlink.
3139+
/// On Unix platforms, this results in a [`FilesystemLoop`] error if the last element is a symlink.
31403140
///
31413141
/// This behavior may change in the future.
31423142
///

library/std/src/sys/fs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub fn set_permissions_nofollow(path: &Path, perm: crate::fs::Permissions) -> io
118118

119119
#[cfg(not(unix))]
120120
pub fn set_permissions_nofollow(_path: &Path, _perm: crate::fs::Permissions) -> io::Result<()> {
121-
crate::unimplemented!("set_permissions_nofollow is not implmented on non-unix platforms")
121+
crate::unimplemented!("`set_permissions_nofollow` is currently only implemented on Unix platforms")
122122
}
123123

124124
pub fn canonicalize(path: &Path) -> io::Result<PathBuf> {

0 commit comments

Comments
 (0)