Skip to content

Commit

Permalink
rewording after comments by @thomcc
Browse files Browse the repository at this point in the history
  • Loading branch information
squell committed Aug 29, 2023
1 parent 53469cf commit 0df002a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions library/std/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1406,11 +1406,11 @@ impl Permissions {
/// On Unix-based platforms this checks if *any* of the owner, group or others
/// write permission bits are set. It does not check if the current
/// user is in the file's assigned group. It also does not check ACLs.
/// Therefore even if this returns false you may not be able to write to the
/// file, and vice versa. The [`PermissionsExt`] trait gives direct access
/// to the permission bits but also does not read ACLs. If you need to
/// accurately know whether or not a file is writable use the `access()`
/// function from libc.
/// Therefore the return value of this function cannot be relied upon
/// to predict whether attempts to read or write the file will actually succeed.
/// The [`PermissionsExt`] trait gives direct access to the permission bits but
/// also does not read ACLs. If you need to accurately know whether or not a file
/// is writable use the `access()` function from libc.
///
/// [`PermissionsExt`]: crate::os::unix::fs::PermissionsExt
///
Expand Down

0 comments on commit 0df002a

Please sign in to comment.