Skip to content

Commit

Permalink
Update fuel.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejpirog committed Apr 16, 2023
1 parent f26ec8c commit 579ee30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/fuel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void tryFib(int64_t n)
if (res) {
std::cout << res.value() << std::endl;
} else {
std::cout << "...took too long to complete" << std::endl;
std::cout << "(not enough fuel to complete this computation)" << std::endl;
}
}

Expand All @@ -110,7 +110,7 @@ int main()
// fib(5) = 5
// fib(10) = 55
// fib(15) = 610
// fib(20) = ...took too long to complete
// fib(20) = (not enough fuel to complete this computation)

measureFib(5);
measureFib(10);
Expand Down

0 comments on commit 579ee30

Please sign in to comment.