about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarc R. Schoolderman <4155359+squell@users.noreply.github.com>2023-03-17 14:33:50 +0100
committerGitHub <noreply@github.com>2023-03-17 14:33:50 +0100
commit53469cfc3f0cc25530c1b5407f5dad97f103f8c6 (patch)
tree3433c9d4ba8e7c3f77eab41465a512f8e6449fd6
parent2d64f229a09515978e6f338b821057a64334a0b5 (diff)
downloadrust-53469cfc3f0cc25530c1b5407f5dad97f103f8c6.tar.gz
rust-53469cfc3f0cc25530c1b5407f5dad97f103f8c6.zip
fix typo in documentation for std::fs::Permissions
-rw-r--r--library/std/src/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs
index c550378e7d6..342ea156231 100644
--- a/library/std/src/fs.rs
+++ b/library/std/src/fs.rs
@@ -1406,7 +1406,7 @@ 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 true you may not be able to write to the
+    /// 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()`