remove potentially misleading sentence about libc::access

This commit is contained in:
Marc Schoolderman 2024-02-22 11:42:39 +01:00
parent 0df002a2e2
commit b353765120

View File

@ -1409,8 +1409,7 @@ impl Permissions {
/// Therefore the return value of this function cannot be relied upon /// Therefore the return value of this function cannot be relied upon
/// to predict whether attempts to read or write the file will actually succeed. /// to predict whether attempts to read or write the file will actually succeed.
/// The [`PermissionsExt`] trait gives direct access to the permission bits but /// 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 /// also does not read ACLs.
/// is writable use the `access()` function from libc.
/// ///
/// [`PermissionsExt`]: crate::os::unix::fs::PermissionsExt /// [`PermissionsExt`]: crate::os::unix::fs::PermissionsExt
/// ///