Fix spacing in CP.4 example (#1365)

This commit is contained in:
Amir Livneh
2019-03-04 08:49:11 -05:00
committed by Sergey Zubkov
parent 002d8b8301
commit a2f5f77b1c

View File

@@ -13990,7 +13990,7 @@ Application concepts are easier to reason about.
##### Example
void some_fun() {
std::string msg, msg2;
std::string msg, msg2;
std::thread publisher([&] { msg = "Hello"; }); // bad: less expressive
// and more error-prone
auto pubtask = std::async([&] { msg2 = "Hello"; }); // OK