about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorJames 'zofrex' Sanderson <zofrex@gmail.com>2022-04-07 08:51:59 +0100
committerJames 'zofrex' Sanderson <zofrex@gmail.com>2022-04-07 08:51:59 +0100
commitef59ab738e9e6b6021294cd31901ee42c81b67ec (patch)
tree28fc08c8102c7bf57c9f3d5353a6ba52d10dfb29 /library/std/src
parent8cd6080f6c778f6664ea3d12ca7848231707a627 (diff)
downloadrust-ef59ab738e9e6b6021294cd31901ee42c81b67ec.tar.gz
rust-ef59ab738e9e6b6021294cd31901ee42c81b67ec.zip
Use gender neutral terms
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/fs/tests.rs6
-rw-r--r--library/std/src/thread/local.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/library/std/src/fs/tests.rs b/library/std/src/fs/tests.rs
index 3fa731c9529..e8d0132f4b9 100644
--- a/library/std/src/fs/tests.rs
+++ b/library/std/src/fs/tests.rs
@@ -644,9 +644,9 @@ fn recursive_rmdir_toctou() {
     // Test for time-of-check to time-of-use issues.
     //
     // Scenario:
-    // The attacker wants to get directory contents deleted, to which he does not have access.
-    // He has a way to get a privileged Rust binary call `std::fs::remove_dir_all()` on a
-    // directory he controls, e.g. in his home directory.
+    // The attacker wants to get directory contents deleted, to which they do not have access.
+    // They have a way to get a privileged Rust binary call `std::fs::remove_dir_all()` on a
+    // directory they control, e.g. in their home directory.
     //
     // The POC sets up the `attack_dest/attack_file` which the attacker wants to have deleted.
     // The attacker repeatedly creates a directory and replaces it with a symlink from
diff --git a/library/std/src/thread/local.rs b/library/std/src/thread/local.rs
index a41cb02a607..fc307c5666d 100644
--- a/library/std/src/thread/local.rs
+++ b/library/std/src/thread/local.rs
@@ -980,7 +980,7 @@ pub mod fast {
         unsafe fn try_initialize<F: FnOnce() -> T>(&self, init: F) -> Option<&'static T> {
             // SAFETY: See comment above (this function doc).
             if !mem::needs_drop::<T>() || unsafe { self.try_register_dtor() } {
-                // SAFETY: See comment above (his function doc).
+                // SAFETY: See comment above (this function doc).
                 Some(unsafe { self.inner.initialize(init) })
             } else {
                 None