mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
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
This commit is contained in:
parent
f6ba91e90a
commit
d26dde2a4f
|
@ -10352,7 +10352,7 @@ The C++17 rules are somewhat less surprising:
|
||||||
|
|
||||||
So use `={...}` if you really want an `initializer_list<T>`
|
So use `={...}` if you really want an `initializer_list<T>`
|
||||||
|
|
||||||
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
|
##### Note
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user