about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-08-08 18:12:33 +0200
committerRalf Jung <post@ralfj.de>2018-08-08 18:12:33 +0200
commit31bec788f46c73ab14c72868dc6141141320a058 (patch)
treef51b52ff63cf9160f406ff019aabcec034b056e4 /src/libstd/thread
parent645388583ca47357a6a2e5878a9cde84e2e579d3 (diff)
downloadrust-31bec788f46c73ab14c72868dc6141141320a058.tar.gz
rust-31bec788f46c73ab14c72868dc6141141320a058.zip
avoid using the word 'initialized' to talk about that non-reentrant-capable state of the mutex
Diffstat (limited to 'src/libstd/thread')
-rw-r--r--src/libstd/thread/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs
index 0078a05e597..61c6084a250 100644
--- a/src/libstd/thread/mod.rs
+++ b/src/libstd/thread/mod.rs
@@ -940,7 +940,7 @@ pub struct ThreadId(u64);
 impl ThreadId {
     // Generate a new unique thread ID.
     fn new() -> ThreadId {
-        // `GUARD` is never initialized fully, so it is UB to attempt to
+        // We never call `GUARD.init()`, so it is UB to attempt to
         // acquire this mutex reentrantly!
         static GUARD: mutex::Mutex = mutex::Mutex::new();
         static mut COUNTER: u64 = 0;