about summary refs log tree commit diff
path: root/library/std/src/thread
diff options
context:
space:
mode:
authorcalciumbe <192480234+calciumbe@users.noreply.github.com>2024-12-29 18:03:37 +0800
committercalciumbe <192480234+calciumbe@users.noreply.github.com>2024-12-29 21:35:02 +0800
commit4f8bebd6b55e0a2986be81e50e3851a3ba973edf (patch)
tree859b8df03038873b20273c26f3a8a99bf89004ec /library/std/src/thread
parent42591a4cc0ccfc487b5f0813a77c79137fd10eb5 (diff)
downloadrust-4f8bebd6b55e0a2986be81e50e3851a3ba973edf.tar.gz
rust-4f8bebd6b55e0a2986be81e50e3851a3ba973edf.zip
fix: typos
Signed-off-by: calciumbe <192480234+calciumbe@users.noreply.github.com>
Diffstat (limited to 'library/std/src/thread')
-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 {