Skip to content

Commit 5b5746f

Browse files
m-ou-sedeltragon
andauthored
Fix typo in Scope::spawn docs.
Co-authored-by: deltragon <[email protected]>
1 parent c429ade commit 5b5746f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/thread/scoped.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl<'env> Scope<'env> {
144144
///
145145
/// # Panics
146146
///
147-
/// Panics if the OS fails to create a thread; use [`Builder::spawn`]
147+
/// Panics if the OS fails to create a thread; use [`Builder::spawn_scoped`]
148148
/// to recover from such errors.
149149
///
150150
/// [`join`]: ScopedJoinHandle::join

0 commit comments

Comments
 (0)