Skip to content

Commit 9fab380

Browse files
authored
Fix typo in doc for library/std/src/fs.rs#set_permissions
"privalage" -> "privilege"
1 parent 8b1889c commit 9fab380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3119,7 +3119,7 @@ pub fn read_dir<P: AsRef<Path>>(path: P) -> io::Result<ReadDir> {
31193119
/// On UNIX-like systems, this function will update the permission bits
31203120
/// of the file pointed to by the symlink.
31213121
///
3122-
/// Note that this behavior can lead to privalage escalation vulnerabilities,
3122+
/// Note that this behavior can lead to privilege escalation vulnerabilities,
31233123
/// where the ability to create a symlink in one directory allows you to
31243124
/// cause the permissions of another file or directory to be modified.
31253125
///

0 commit comments

Comments
 (0)