From ff4a3069a12d68eab780d0c44a3f7617a097ea23 Mon Sep 17 00:00:00 2001 From: Andrei Maiboroda Date: Tue, 24 Apr 2018 17:30:49 +0200 Subject: [PATCH] Fix comments in C.42 examples --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index c00bb8e..4c5f834 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -5066,7 +5066,7 @@ Leaving behind an invalid object is asking for trouble. ##### Example class X2 { - FILE* f; // call init() before any other function + FILE* f; // ... public: X2(const string& name) @@ -5090,7 +5090,7 @@ Leaving behind an invalid object is asking for trouble. ##### Example, bad class X3 { // bad: the constructor leaves a non-valid object behind - FILE* f; // call init() before any other function + FILE* f; // call is_valid() before any other function bool valid; // ... public: