From 9960c7dd7fcbef1aa49d86e3a64bd740f02bd472 Mon Sep 17 00:00:00 2001 From: rico-chet Date: Thu, 28 May 2020 20:37:50 +0200 Subject: [PATCH] [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. --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 14e4f01..5983e6c 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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 using namespace std; - void use() // bad + void use() { string s; cin >> s; // fine