From d26dde2a4f8af442fad41afeeb6ba2f8d4656782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20K=C3=A4lberer?= Date: Thu, 6 Jul 2017 22:24:32 +0200 Subject: [PATCH] Fix Fibonacci sequence A number sequence called `fib` should be the Fibonacci sequence or have a different name. https://en.wikipedia.org/wiki/Fibonacci_number --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 4176adf..eb80f30 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -10352,7 +10352,7 @@ The C++17 rules are somewhat less surprising: So use `={...}` if you really want an `initializer_list` - auto fib10 = {0, 1, 2, 3, 5, 8, 13, 21, 34, 55}; // fib10 is a list + auto fib10 = {1, 1, 2, 3, 5, 8, 13, 21, 34, 55}; // fib10 is a list ##### Note