diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 26c3de9..2dcd865 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -10378,7 +10378,7 @@ Local static variables are a common source of data races. { array buf; int sz = read_vec(fs, buf, max); // read from fs into buf - gsl::span s {buf, max}; + gsl::span s {buf}; // ... auto h1 = async([&]{ sort(par, s); }); // spawn a task to sort // ...