diff --git a/library/std/src/thread/scoped.rs b/library/std/src/thread/scoped.rs index cda86a48b243..701850b42dcf 100644 --- a/library/std/src/thread/scoped.rs +++ b/library/std/src/thread/scoped.rs @@ -144,7 +144,7 @@ impl<'env> Scope<'env> { /// /// # Panics /// - /// Panics if the OS fails to create a thread; use [`Builder::spawn`] + /// Panics if the OS fails to create a thread; use [`Builder::spawn_scoped`] /// to recover from such errors. /// /// [`join`]: ScopedJoinHandle::join