mirror of
https://github.com/CnTransGroup/EffectiveModernCppChinese.git
synced 2024-12-26 21:00:23 +08:00
fix a typo and tweak desc (#171)
This commit is contained in:
parent
00cac2e48d
commit
a9f64e914c
@ -73,7 +73,7 @@ auto fut = pt.get_future(); //从pt获取future
|
|||||||
std::thread t(std::move(pt)); //在t上运行pt
|
std::thread t(std::move(pt)); //在t上运行pt
|
||||||
```
|
```
|
||||||
|
|
||||||
这个例子是你对于*future*的析构函数的正常行为有一些了解,但是将这些语句放在一个作用域的语句块里更容易看:
|
这个例子使你对于*future*的析构函数的正常行为有一些了解,但是将这些语句放在一个作用域的语句块里会使其更易于阅读:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
{ //开始代码块
|
{ //开始代码块
|
||||||
|
Loading…
Reference in New Issue
Block a user