From 5a4e719f861bffecc836b893ad59a4093abdd710 Mon Sep 17 00:00:00 2001 From: jullej Date: Wed, 23 Sep 2015 12:10:21 +0300 Subject: [PATCH] Update CppCoreGuidelines.md Fixed typos. --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 9794ac8..8dd62c2 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -4781,13 +4781,13 @@ not using this (over)general interface in favor of a particular interface found // ... no destructor ... }; - stuct D : B { // bad: class with a resource derived from a class without a virtual destructor + struct D : B { // bad: class with a resource derived from a class without a virtual destructor string s {"default"}; }; void use() { - B* p = new B; + B* p = new D; delete p; // leak the string }