Skip to content

Commit 2820bdb

Browse files
authored
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.
2 parents ef33494 + b7c933a commit 2820bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3043,7 +3043,7 @@ pub fn read_dir<P: AsRef<Path>>(path: P) -> io::Result<ReadDir> {
30433043
/// When possible, permissions should be set at creation time instead.
30443044
///
30453045
/// # Rationale
3046-
/// POSIX does not specify an `lchown` function,
3046+
/// POSIX does not specify an `lchmod` function,
30473047
/// and symlinks can be followed regardless of what permission bits are set.
30483048
///
30493049
/// # Errors

0 commit comments

Comments
 (0)