Skip to content

Commit 2e071c2

Browse files
doc: be more clear about what the 'spawn' does
1 parent 7ec70e9 commit 2e071c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rayon-core/src/spawn/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use crate::unwind;
44
use std::mem;
55
use std::sync::Arc;
66

7-
/// Fires off a task into the Rayon threadpool in the "static" or
8-
/// "global" scope. Just like a standard thread, this task is not
7+
/// Puts the task into the Rayon threadpool's job queue in the "static"
8+
/// or "global" scope. Just like a standard thread, this task is not
99
/// tied to the current stack frame, and hence it cannot hold any
1010
/// references other than those with `'static` lifetime. If you want
1111
/// to spawn a task that references stack data, use [the `scope()`

0 commit comments

Comments
 (0)