diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-05-03 12:44:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-03 12:44:36 +0200 |
| commit | 2820bdb740a4b61b39f9390327ae84d02aec53fc (patch) | |
| tree | f3ac42f248dab6bcaeb9d6039ce589f6941814e3 /library/std | |
| parent | ef33494d6c204866b0eb38fccc47d13e65bcc49c (diff) | |
| parent | b7c933a495a42d684f7acb493caeee3f3c4e87bf (diff) | |
| download | rust-2820bdb740a4b61b39f9390327ae84d02aec53fc.tar.gz rust-2820bdb740a4b61b39f9390327ae84d02aec53fc.zip | |
Rollup merge of #140595 - lolbinarycat:std-set_permissions-typo, r=cuviper
doc(std): fix typo lchown -> lchmod chown is irrelevant here, as this function does not affect file ownership. chmod is the correct function to reference here.
Diffstat (limited to 'library/std')
| -rw-r--r-- | library/std/src/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index 3ff08e3a566..11f439b9996 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -3043,7 +3043,7 @@ pub fn read_dir<P: AsRef<Path>>(path: P) -> io::Result<ReadDir> { /// When possible, permissions should be set at creation time instead. /// /// # Rationale -/// POSIX does not specify an `lchown` function, +/// POSIX does not specify an `lchmod` function, /// and symlinks can be followed regardless of what permission bits are set. /// /// # Errors |
