From 6c92f514f4f07fd11c55c96b4d6c26e46b135af1 Mon Sep 17 00:00:00 2001 From: Louis Cloete <38226392+L0uisc@users.noreply.github.com> Date: Tue, 28 May 2019 15:01:27 +0200 Subject: [PATCH] Remove extra asterisk in example in C.60 (#1430) closes #1429 --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 72ea00d..145d201 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -5808,11 +5808,11 @@ But what if you can get significantly better performance by not making a tempora { if (a.sz > sz) { // ... use the swap technique, it can't be bettered ... - return *this + return *this; } // ... copy sz elements from *a.elem to elem ... if (a.sz < sz) { - // ... destroy the surplus elements in *this* and adjust size ... + // ... destroy the surplus elements in *this and adjust size ... } return *this; }