Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Commit 9d8b68d

Browse files
committed
移除调试打印语句
移除了 `fib` 函数中的调试打印语句 `println("n = " + n);`。该语句用于在计算斐波那契数列时输出中间值 `n`,但在线上环境中不再需要,移除以提高性能并避免不必要的输出。
1 parent cfe3804 commit 9d8b68d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fib.cn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ fn fib(n : int) : int{
55
if (n <= 1){
66
return n;
77
} else {
8-
println("n = " + n);
98
return fib(n - 1) + fib(n - 2);
109
};
1110
};

0 commit comments

Comments
 (0)