]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in Scope::spawn docs.
authorMara Bos <m-ou.se@m-ou.se>
Tue, 4 Jan 2022 18:43:23 +0000 (18:43 +0000)
committerGitHub <noreply@github.com>
Tue, 4 Jan 2022 18:43:23 +0000 (18:43 +0000)
Co-authored-by: deltragon <m@dafert.at>
library/std/src/thread/scoped.rs

index cda86a48b24304026d6878ffd26c123b801f289e..701850b42dcf6864b95098eb7aebdf9615360029 100644 (file)
@@ -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