Update 04_scoped_threads.md (#258)

Improved phrasing for  the `scope` h2
This commit is contained in:
David Ekete 2025-02-08 10:21:56 +01:00 committed by GitHub
parent a7865baf3c
commit 13850a6b01
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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