From d456ccf274a66a1ce73071fd6d3e433c1e06af6d Mon Sep 17 00:00:00 2001 From: shaneasd Date: Tue, 18 Jun 2019 22:22:50 +0800 Subject: [PATCH] Fix comment in C.128 example (#1449) --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 7fc04da..7bf6a63 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -6998,9 +6998,9 @@ If a base class destructor is declared `virtual`, one should avoid declaring der ##### Example, good struct Better : B { - void f1(int) override; // error (caught): D::f1() hides B::f1() + void f1(int) override; // error (caught): Better::f1() hides B::f1() void f2(int) const override; - void f3(double) override; // error (caught): D::f3() hides B::f3() + void f3(double) override; // error (caught): Better::f3() hides B::f3() // ... };