aboutsummaryrefslogtreecommitdiffstats
path: root/sample/fib.pl
diff options
context:
space:
mode:
Diffstat (limited to 'sample/fib.pl')
-rw-r--r--sample/fib.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/fib.pl b/sample/fib.pl
index 945a4929a7..4c35eaae31 100644
--- a/sample/fib.pl
+++ b/sample/fib.pl
@@ -1,10 +1,10 @@
sub fib {
my($n)=@_;
if ($n<2) {
- return $n;
+ return $n;
}
else {
- return fib($n-2)+fib($n-1);
+ return fib($n-2)+fib($n-1);
}
}