From 7be6e7daed7558b910bfbf98570282784ac70dbd Mon Sep 17 00:00:00 2001 From: Mohit Jain <31443206+mjbpl@users.noreply.github.com> Date: Thu, 9 Nov 2017 23:23:13 +0530 Subject: [PATCH] Fix typo in destructor name (#1074) Itream -> Istream in I.30: Encapsulate rule violations code snippet --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 53c481a..452c104 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -2240,7 +2240,7 @@ So, we write a class Istream() { } Istream(zstring p) :owned{true}, inp{new ifstream{p}} {} // read from file Istream(zstring p, Opt) :owned{true}, inp{new istringstream{p}} {} // read from command line - ~Itream() { if (owned) delete inp; } + ~Istream() { if (owned) delete inp; } operator istream& () { return *inp; } private: bool owned = false;