fix: 25-funcs explanations
This commit is contained in:
@ -11,10 +11,9 @@ import "fmt"
|
||||
|
||||
func showN() {
|
||||
if N == 0 {
|
||||
fmt.Println("showN : N is zero, increment it.")
|
||||
return
|
||||
}
|
||||
fmt.Printf("showN : N = %d\n", N)
|
||||
fmt.Printf("showN : N is %d\n", N)
|
||||
}
|
||||
|
||||
func incrN() {
|
||||
|
@ -16,8 +16,8 @@
|
||||
// BUT NOT like so:
|
||||
// go run main.go
|
||||
//
|
||||
// Because, the compiler needs to see global.go too
|
||||
// It can't magically find global.go — what you give is what you get.
|
||||
// Because, the compiler needs to see bad.go too
|
||||
// It can't magically find bad.go — what you give is what you get.
|
||||
//
|
||||
|
||||
package main
|
||||
|
Reference in New Issue
Block a user