From d822f80d5d2f94a68198d34f305c091edad1c498 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 19 Dec 2018 15:51:17 +0000 Subject: [PATCH] Fix whitespace errors in code, to make Travis CI pass --- CppCoreGuidelines.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 360ba16..7d5aeea 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -12132,9 +12132,9 @@ In the rare cases where the slicing was deliberate the code can be surprising. void assign(const Shape& src, Shape& dest) { dest = src; } - Circle c2 {{1,1}, 43}; - assign( c, c2); // oops, not the whole state is transferred - assert( c == c2); // if we supply copying, we should also provide comparison, + Circle c2 {{1, 1}, 43}; + assign(c, c2); // oops, not the whole state is transferred + assert(c == c2); // if we supply copying, we should also provide comparison, // but this will likely return false The result will be meaningless because the center and radius will not be copied from `c` into `s`.