From b35376512031a24e236f66cbca8712ecea5e721c Mon Sep 17 00:00:00 2001 From: Marc Schoolderman Date: Thu, 22 Feb 2024 11:42:39 +0100 Subject: [PATCH] remove potentially misleading sentence about libc::access --- library/std/src/fs.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index e506b321c2518..d5387e2e2b448 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -1409,8 +1409,7 @@ impl Permissions { /// 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. + /// also does not read ACLs. /// /// [`PermissionsExt`]: crate::os::unix::fs::PermissionsExt ///