Use tabs as the canonical source indentation in git
Space conversion is done during generation only. Fixes #192
This commit is contained in:
committed by
Mark McGranaghan
parent
1699ad1c45
commit
7c160440be
@@ -9,12 +9,12 @@ import "fmt"
|
||||
// This `fact` function calls itself until it reaches the
|
||||
// base case of `fact(0)`.
|
||||
func fact(n int) int {
|
||||
if n == 0 {
|
||||
return 1
|
||||
}
|
||||
return n * fact(n-1)
|
||||
if n == 0 {
|
||||
return 1
|
||||
}
|
||||
return n * fact(n-1)
|
||||
}
|
||||
|
||||
func main() {
|
||||
fmt.Println(fact(7))
|
||||
fmt.Println(fact(7))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user