diff options
| author | ruki <[email protected]> | 2025-10-28 09:00:41 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-28 09:00:41 +0800 |
| commit | 865a9667dd0ce72c2d0ceb2c72c77c2bc53e4976 (patch) | |
| tree | 42f6b18775edd517d35bfc7ddaffae64a52a2127 | |
| parent | 6455b960bacd109a64d58c078de693a6ede538e3 (diff) | |
Fix formatting in fibonacci_cpp function
| -rw-r--r-- | tests/projects/swift/bidirectional_cxx_interop_lib/lib/fibonacci.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/projects/swift/bidirectional_cxx_interop_lib/lib/fibonacci.cpp b/tests/projects/swift/bidirectional_cxx_interop_lib/lib/fibonacci.cpp index 638e6dc38..64ba4bba7 100644 --- a/tests/projects/swift/bidirectional_cxx_interop_lib/lib/fibonacci.cpp +++ b/tests/projects/swift/bidirectional_cxx_interop_lib/lib/fibonacci.cpp @@ -3,7 +3,7 @@ #include <iostream> extern "C" int fibonacci_cpp(int x) { - std::cout << "x [cpp]: " << x << std::endl; - if (x <= 1) return 1; - return SwiftFibonacci::fibonacciSwift(x - 1) + SwiftFibonacci::fibonacciSwift(x - 2); + std::cout << "x [cpp]: " << x << std::endl; + if (x <= 1) return 1; + return SwiftFibonacci::fibonacciSwift(x - 1) + SwiftFibonacci::fibonacciSwift(x - 2); } |
