about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2022-01-04 18:43:23 +0000
committerGitHub <noreply@github.com>2022-01-04 18:43:23 +0000
commit5b5746f08138f880cf21798402a65cd39d17cf68 (patch)
treea6ab67ab07b013c76eba0e0f8cda701ade98f264
parentc429ade7604b7417021ae39c63e3c7f26014c3a3 (diff)
downloadrust-5b5746f08138f880cf21798402a65cd39d17cf68.tar.gz
rust-5b5746f08138f880cf21798402a65cd39d17cf68.zip
Fix typo in Scope::spawn docs.
Co-authored-by: deltragon <m@dafert.at>
-rw-r--r--library/std/src/thread/scoped.rs2
1 files changed, 1 insertions, 1 deletions
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