Update 04_scoped_threads.md (#258)
Improved phrasing for the `scope` h2
This commit is contained in:
parent
a7865baf3c
commit
13850a6b01
@ -27,7 +27,7 @@ Let's unpack what's happening.
|
|||||||
## `scope`
|
## `scope`
|
||||||
|
|
||||||
The `std::thread::scope` function creates a new **scope**.\
|
The `std::thread::scope` function creates a new **scope**.\
|
||||||
`std::thread::scope` takes as input a closure, with a single argument: a `Scope` instance.
|
`std::thread::scope` takes a closure as input, with a single argument: a `Scope` instance.
|
||||||
|
|
||||||
## Scoped spawns
|
## Scoped spawns
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user