Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tour: [package: math.Pi instead of pi] #1471

Closed
x12311231 opened this issue Apr 7, 2023 · 1 comment
Closed

tour: [package: math.Pi instead of pi] #1471

x12311231 opened this issue Apr 7, 2023 · 1 comment

Comments

@x12311231
Copy link

Context: http://127.0.0.1:3999/tour/basics/3

Change the title above to describe your issue and add your feedback here, including code if necessary
package main
should be:

import (
"fmt"
"math"
)

func main() {
fmt.Println(math.Pi)
}

@x12311231 x12311231 changed the title tour: [package math.Pi instead of pi] tour: [package: math.Pi instead of pi] Apr 7, 2023
@crisman
Copy link

crisman commented Apr 7, 2023

Yes, that is the point of the exercise. To see the error when you run it with the lower case version and then see the correct running when changed to upper case.

To fix the error, rename math.pi to math.Pi and try it again.

@ALTree ALTree closed this as completed Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants