From 27d1c01782f2d266c280685b2e3dbba18dd8c084 Mon Sep 17 00:00:00 2001 From: Leonardo Perez Pulido Date: Fri, 24 Nov 2017 19:48:48 -0400 Subject: [PATCH] Typo: add missing semicolon --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 1d87305..5a946bc 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -679,7 +679,7 @@ You don't need to write error handlers for errors caught at compile time. for (Int i = 1; i; i <<= 1) ++bits; if (bits < 32) - cerr << "Int too small\n" + cerr << "Int too small\n"; This example fails to achieve what it is trying to achieve (because overflow is undefined) and should be replaced with a simple `static_assert`: