From 5b5746f08138f880cf21798402a65cd39d17cf68 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Tue, 4 Jan 2022 18:43:23 +0000 Subject: [PATCH] Fix typo in Scope::spawn docs. Co-authored-by: deltragon --- library/std/src/thread/scoped.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/thread/scoped.rs b/library/std/src/thread/scoped.rs index cda86a48b24..701850b42dc 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