Skip to content

Commit

Permalink
fix: 纠正拼写
Browse files Browse the repository at this point in the history
  • Loading branch information
passchaos committed Aug 31, 2023
1 parent 78dbb3d commit 22b5595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/2-5-Introduction-to-local-scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int add(int x, int y) // x 和 y 在此处创建并初始化
}
```

此时我们不经要问,”那么实例化的变量是在合适被销毁的呢?“。局部变量是在**包含其定义的一组花括号的结尾**时销毁的,其销毁的顺序和定义顺序正好相反(对于[[parameters|形参]]来说,则是在函数结束时销毁)。
此时我们不经要问,”那么实例化的变量是在何时被销毁的呢?“。局部变量是在**包含其定义的一组花括号的结尾**时销毁的,其销毁的顺序和定义顺序正好相反(对于[[parameters|形参]]来说,则是在函数结束时销毁)。

```cpp
int add(int x, int y)
Expand Down

0 comments on commit 22b5595

Please sign in to comment.