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

span a task -> spawn a task
pull/1015/merge
Sebastian Valle 8 years ago committed by Jonathan Wakely
parent 7a3d3c5a29
commit 9840eefacf

@ -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 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
// ...
}

Loading…
Cancel
Save