about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-12-29 21:18:07 +0100
committerGitHub <noreply@github.com>2024-12-29 21:18:07 +0100
commit344a61e69b6b06aa98b6ba21cac980929507d403 (patch)
treed44d9dfcd9ce3732d5d6d8f71868654a6b08f27a /library/std
parentd45cb76edc59e49c408d5ba4787bd2f955890cd7 (diff)
parent4f8bebd6b55e0a2986be81e50e3851a3ba973edf (diff)
Rollup merge of #134884 - calciumbe:patch1, r=jieyouxu
Fix typos

Hello, I fix some typos in docs and comments. Thank you very much.
Diffstat (limited to 'library/std')
-rw-r--r--library/std/src/thread/current.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/current.rs b/library/std/src/thread/current.rs
index 1048ef97356..3d2c288b360 100644
--- a/library/std/src/thread/current.rs
+++ b/library/std/src/thread/current.rs
@@ -136,7 +136,7 @@ pub(crate) fn set_current(thread: Thread) -> Result<(), Thread> {
 /// one thread and is guaranteed not to call the global allocator.
 #[inline]
 pub(crate) fn current_id() -> ThreadId {
-    // If accessing the persistant thread ID takes multiple TLS accesses, try
+    // If accessing the persistent thread ID takes multiple TLS accesses, try
     // to retrieve it from the current thread handle, which will only take one
     // TLS access.
     if !id::CHEAP {