Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Sentence typo fixed and written more concisely.
  • Loading branch information
clepz committed Nov 1, 2022
commit 68ac6fb90c78df49de409a3ddfbed025ea9ed269
2 changes: 1 addition & 1 deletion CPP17.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ byte e = byte{256}; // ERROR

### fallthrough, nodiscard, maybe_unused attributes
C++17 introduces three new attributes: `[[fallthrough]]`, `[[nodiscard]]` and `[[maybe_unused]]`.
* `[[fallthrough]]` indicates to the compiler that falling through in a switch statement is intended behavior. This attribure may only be used in a switch statement and next statement to be executed must be a case or default label.
* `[[fallthrough]]` indicates to the compiler that falling through in a switch statement is intended behavior. This attribute may only be used in a switch statement, and must be placed before the next case/default label.
```c++
switch (n) {
case 1:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ byte e = byte{256}; // ERROR

### fallthrough, nodiscard, maybe_unused attributes
C++17 introduces three new attributes: `[[fallthrough]]`, `[[nodiscard]]` and `[[maybe_unused]]`.
* `[[fallthrough]]` indicates to the compiler that falling through in a switch statement is intended behavior. This attribure may only be used in a switch statement and next statement to be executed must be a case or default label.
* `[[fallthrough]]` indicates to the compiler that falling through in a switch statement is intended behavior. This attribute may only be used in a switch statement, and must be placed before the next case/default label.
```c++
switch (n) {
case 1:
Expand Down