Skip to content

Commit 0ac1508

Browse files
authored
Update fibonacci_fast.cpp to meet the coding style requirements
1 parent bec06c9 commit 0ac1508

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

math/fibonacci_fast.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ uint64_t fib(uint64_t n) {
4040
// f1 and f2 for the next function call.
4141
static uint64_t f1 = 1, f2 = 1;
4242

43-
if (n <= 2)
43+
if (n <= 2) {
4444
return f2;
45-
if (n >= MAX) {
45+
} if (n >= MAX) {
4646
throw std::invalid_argument("Cannot compute for n>=" + std::to_string(MAX) +
4747
" due to limit of 64-bit integers");
4848
return 0;

0 commit comments

Comments
 (0)