From 85e6aef5d6cd48e7422a2c0d0d816139b77b9708 Mon Sep 17 00:00:00 2001 From: hsutter Date: Thu, 4 Apr 2019 11:26:37 -0700 Subject: [PATCH] Closes #1395 --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index e4085fb..dcd9562 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -13879,9 +13879,9 @@ Local static variables are a common source of data races. int sz = read_vec(fs, buf, max); // read from fs into buf gsl::span s {buf}; // ... - auto h1 = async([&]{ sort(par, s); }); // spawn a task to sort + auto h1 = async([&]{ sort(std::execution::par, s); }); // spawn a task to sort // ... - auto h2 = async([&]{ return find_all(buf, sz, pat); }); // spawn a task to find matches + auto h2 = async([&]{ return find_all(buf, sz, pattern); }); // spawn a task to find matches // ... }