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: change the return type #511

Open
adyanth opened this issue Jun 10, 2018 · 0 comments
Open

tour: change the return type #511

adyanth opened this issue Jun 10, 2018 · 0 comments

Comments

@adyanth
Copy link

adyanth commented Jun 10, 2018

Context: https://tour.golang.org/methods/3

To demonstrate the idea perfectly, the return type from the method should be MyFloat instead of float64, so that the type of f.Abs() is also MyFloat instead of it being float64

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

1 participant