Skip to content

Commit

Permalink
Merge pull request #10 from passchaos/main
Browse files Browse the repository at this point in the history
fix: 纠正拼写
  • Loading branch information
hanxiaomax authored Sep 2, 2023
2 parents 78dbb3d + 22b5595 commit aaefa03
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 aaefa03

Please sign in to comment.