Skip to content

Commit 5102d7d

Browse files
authored
Update noreturn.md
Preventing some Acrolinx errors that I anticipate would show up on this text.
1 parent 6414c06 commit 5102d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cpp/noreturn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If the compiler finds a function with a control path that does not return a valu
1919
2020
## Example
2121

22-
In the following example, when the argument for `isZeroOrPositive` is negative, a call to `fatal` is made. There is no return statement in that control path, which results in warning C4715 that not all control paths return a value. Declaring `fatal` as **`__declspec(noreturn)`** mitigates that warning because there is no point in it since `fatal()` terminates the program.
22+
In the following example, when the argument for `isZeroOrPositive` is negative, `fatal` is called. There isn't a return statement in that control path, which results in warning C4715 that not all control paths return a value. Declaring `fatal` as **`__declspec(noreturn)`** mitigates that warning, which is desirable because there is no point in it since `fatal()` terminates the program.
2323

2424
```cpp
2525
// noreturn2.cpp

0 commit comments

Comments
 (0)