mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
[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.
This commit is contained in:
parent
f604a6b5d6
commit
9960c7dd7f
|
@ -19096,12 +19096,12 @@ Avoid surprises.
|
|||
Avoid having to change `#include`s if an `#include`d header changes.
|
||||
Avoid accidentally becoming dependent on implementation details and logically separate entities included in a header.
|
||||
|
||||
##### Example
|
||||
##### Example, bad
|
||||
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
void use() // bad
|
||||
void use()
|
||||
{
|
||||
string s;
|
||||
cin >> s; // fine
|
||||
|
|
Loading…
Reference in New Issue
Block a user