golang / tour

[mirror] A Tour of Go
BSD 3-Clause "New" or "Revised" License
1.53k stars 521 forks source link

tour: math.Pi should be pascal case not camel case in the tour #1584

Closed SaMirzaei closed 2 months ago

SaMirzaei commented 4 months ago

Context: https://go.dev/tour/basics/3

Wrong:

fmt.Println(math.pi)

Correct:

fmt.Println(math.Pi)
ALTree commented 2 months ago

Yes, this is on purpose:

Run the code. Notice the error message.