diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 520f427..6a506d1 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -4541,7 +4541,7 @@ Leaving behind an invalid object is asking for trouble. X3 file {"Heraclides"}; file.read(); // crash or bad read! // ... - if (is_valid()) { + if (file.is_valid()) { file.read(); // ... }