Skip to content

Commit 4b1181f

Browse files
committed
book: fix minor typo
1 parent e784ed0 commit 4b1181f

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

assets/wechat-group.jpg

9.15 KB
Loading

book/zh-cn/02-usability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ constexpr int fibonacci(const int n) {
153153

154154
### if/switch 变量声明强化
155155

156-
在传统 C++ 中,变量的声明在虽然能够位于任何位置,甚至于 `for` 语句内能够声明一个临时变量 `int`,但始终没有办法在 `if``switch` 语句中声明一个临时的变量。例如:
156+
在传统 C++ 中,变量的声明虽然能够位于任何位置,甚至于 `for` 语句内能够声明一个临时变量 `int`,但始终没有办法在 `if``switch` 语句中声明一个临时的变量。例如:
157157

158158
```cpp
159159
#include <iostream>

0 commit comments

Comments
 (0)