diff --git a/README.md b/README.md index 6a0b99c3..a275f7de 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ TEST_CASE( "Factorials are computed", "[factorial]" ) { #include uint64_t fibonacci(uint64_t number) { - return number < 2 ? 1 : fibonacci(number - 1) + fibonacci(number - 2); + return number < 2 ? number : fibonacci(number - 1) + fibonacci(number - 2); } TEST_CASE("Benchmark Fibonacci", "[!benchmark]") {