doc(std): fix typo lchown -> lchmod

This commit is contained in:
binarycat 2025-05-02 12:13:40 -05:00
parent f97b3c6044
commit b7c933a495

View file

@ -2994,7 +2994,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