-
Notifications
You must be signed in to change notification settings - Fork 524
Open
Description
Context: https://go.dev/tour/basics/3
There is some code on the page:
package main
import (
"fmt"
"math"
)
func main() {
fmt.Println(math.pi)
}And when we run this code we get the error:
./prog.go:9:19: undefined: math.pi (but have Pi)
Because the correct line is: fmt.Println(math.Pi)
After fixing the line we got this code, which works correctly::
package main
import (
"fmt"
"math"
)
func main() {
fmt.Println(math.Pi)
}Metadata
Metadata
Assignees
Labels
No labels