[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:
rico-chet 2020-05-28 20:37:50 +02:00 committed by GitHub
parent f604a6b5d6
commit 9960c7dd7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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