Skip to content

Commit 1863a75

Browse files
committed
whitespace
1 parent 0695f59 commit 1863a75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CppCoreGuidelines.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7012,7 +7012,7 @@ Here, we ignore such cases.
70127012
* [R.30: Take smart pointers as parameters only to explicitly express lifetime semantics](#Rr-smartptrparam)
70137013
* [R.31: If you have non-`std` smart pointers, follow the basic pattern from `std`](#Rr-smart)
70147014
* [R.32: Take a `unique_ptr<widget>` parameter to express that a function assumes ownership of a `widget`](#Rr-uniqueptrparam)
7015-
* [R.33: Take a `unique_ptr<widget>&` parameter to express that a function reseats the`widget`](#Rr-reseat)
7015+
* [R.33: Take a `unique_ptr<widget>&` parameter to express that a function reseats the `widget`](#Rr-reseat)
70167016
* [R.34: Take a `shared_ptr<widget>` parameter to express that a function is part owner](#Rr-sharedptrparam-owner)
70177017
* [R.35: Take a `shared_ptr<widget>&` parameter to express that a function might reseat the shared pointer](#Rr-sharedptrparam)
70187018
* [R.36: Take a `const shared_ptr<widget>&` parameter to express that it might retain a reference count to the object ???](#Rr-sharedptrparam-const)
@@ -8430,7 +8430,7 @@ solution:
84308430
j = f4();
84318431
}
84328432

8433-
Now the compiler cannot even simply detect a used-before-set. Further, we've introduced complexity in the state space for widget: which operations are valid on an `unint` widget and which are not?
8433+
Now the compiler cannot even simply detect a used-before-set. Further, we've introduced complexity in the state space for widget: which operations are valid on an `uninit` widget and which are not?
84348434

84358435
##### Note
84368436

@@ -9112,7 +9112,7 @@ It is easy to overlook the fallthrough. Be explicit:
91129112
break;
91139113
case Warning:
91149114
write_event_log();
9115-
// fall through
9115+
// fallthrough
91169116
case Error:
91179117
display_error_window(); // Bad
91189118
break;
@@ -9134,7 +9134,7 @@ Multiple case labels of a single statement is OK:
91349134

91359135
##### Enforcement
91369136

9137-
Flag all fall throughs from non-empty `case`s.
9137+
Flag all fallthroughs from non-empty `case`s.
91389138

91399139
### <a name="Res-default"></a>ES.79: ??? `default`
91409140

0 commit comments

Comments
 (0)