CP.2: Fixed a typo in the async example code. (#1030)

span a task -> spawn a task
This commit is contained in:
Sebastian Valle 2017-08-21 12:01:00 -05:00 committed by Jonathan Wakely
parent 7a3d3c5a29
commit 9840eefacf

View File

@ -13283,7 +13283,7 @@ Local static variables are a common source of data races.
// ... // ...
auto h1 = async([&]{ sort(par, s); }); // spawn a task to sort auto h1 = async([&]{ sort(par, s); }); // spawn a task to sort
// ... // ...
auto h2 = async([&]{ return find_all(buf, sz, pat); }); // span a task to find matches auto h2 = async([&]{ return find_all(buf, sz, pat); }); // spawn a task to find matches
// ... // ...
} }