mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 20:54:39 +03:00
book: typo fixes (#200)
This commit is contained in:
@@ -72,7 +72,7 @@ int main()
|
|||||||
try {
|
try {
|
||||||
may_throw();
|
may_throw();
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
std::cout << "捕获异常, 来自 my_throw()" << std::endl;
|
std::cout << "捕获异常, 来自 may_throw()" << std::endl;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
non_block_throw();
|
non_block_throw();
|
||||||
@@ -89,7 +89,7 @@ try {
|
|||||||
最终输出为:
|
最终输出为:
|
||||||
|
|
||||||
```
|
```
|
||||||
捕获异常, 来自 my_throw()
|
捕获异常, 来自 may_throw()
|
||||||
捕获异常, 来自 non_block_throw()
|
捕获异常, 来自 non_block_throw()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user