book: fix minor typo

This commit is contained in:
Changkun Ou
2019-08-28 08:47:23 +02:00
parent e784ed003e
commit 4b1181f233
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

@@ -153,7 +153,7 @@ constexpr int fibonacci(const int n) {
### if/switch 变量声明强化 ### if/switch 变量声明强化
在传统 C++ 中,变量的声明虽然能够位于任何位置,甚至于 `for` 语句内能够声明一个临时变量 `int`,但始终没有办法在 `if``switch` 语句中声明一个临时的变量。例如: 在传统 C++ 中,变量的声明虽然能够位于任何位置,甚至于 `for` 语句内能够声明一个临时变量 `int`,但始终没有办法在 `if``switch` 语句中声明一个临时的变量。例如:
```cpp ```cpp
#include <iostream> #include <iostream>