未验证 提交 9960c7dd 编写于 作者: R rico-chet 提交者: GitHub

[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.
上级 f604a6b5
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册