diff options
| -rw-r--r-- | library/std/src/thread/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs index ae3dfef4870..9cdc20b1f28 100644 --- a/library/std/src/thread/mod.rs +++ b/library/std/src/thread/mod.rs @@ -690,7 +690,7 @@ pub(crate) fn set_current(thread: Thread) { // control over where this is called, so just abort if there is a bug. CURRENT.with(|current| match current.set(thread) { Ok(()) => {} - Err(_) => rtabort!("should only be set once"), + Err(_) => rtabort!("thread::set_current should only be called once per thread"), }); } |
