Skip to content

Commit 9960c7d

Browse files
authored
[SF.10] Fix annotation of the _bad_ example (#1627)
The _bad_ example wasn't annotated as such and a perfectly fine function name was marked bad. Annotate the example as bad and remove the misleading function name annotation.
1 parent f604a6b commit 9960c7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CppCoreGuidelines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19096,12 +19096,12 @@ Avoid surprises.
1909619096
Avoid having to change `#include`s if an `#include`d header changes.
1909719097
Avoid accidentally becoming dependent on implementation details and logically separate entities included in a header.
1909819098

19099-
##### Example
19099+
##### Example, bad
1910019100

1910119101
#include <iostream>
1910219102
using namespace std;
1910319103

19104-
void use() // bad
19104+
void use()
1910519105
{
1910619106
string s;
1910719107
cin >> s; // fine

0 commit comments

Comments
 (0)