mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
Fix spacing in CP.4 example (#1365)
This commit is contained in:
committed by
Sergey Zubkov
parent
002d8b8301
commit
a2f5f77b1c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user