Skip to content

Commit 0a64ea2

Browse files
authored
Merge pull request egonSchiele#150 from neverovski/patch-1
Update zero factorial Golang
2 parents a5d9073 + b4c4400 commit 0a64ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

03_recursion/Golang/03_factorial/Factorial.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import "fmt"
44

55
func fact(x int) int {
6-
if x == 1 {
6+
if x == 0 {
77
return 1
88
}
99

0 commit comments

Comments
 (0)