Merge pull request #150 from neverovski/patch-1
Update zero factorial Golang
This commit is contained in:
@@ -3,7 +3,7 @@ package main
|
||||
import "fmt"
|
||||
|
||||
func fact(x int) int {
|
||||
if x == 1 {
|
||||
if x == 0 {
|
||||
return 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user