Skip to content

x/website: doc/tutorial/handle-errors: too many return values #67252

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

Closed
veronikaEve opened this issue May 8, 2024 · 2 comments
Closed

x/website: doc/tutorial/handle-errors: too many return values #67252

veronikaEve opened this issue May 8, 2024 · 2 comments

Comments

@veronikaEve
Copy link

What is the URL of the page with the issue?

https://go.dev/doc/tutorial/handle-errors

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

Screenshot

image

What did you do?

Ive been following this tutorial, and when getting to this error handling stage the code doesn't work anymore

What did you expect to see?

The tutorial code to just run without issues.

Looks like the norms have changed and it's not possible to return multiple elements but the tutorial is not up to date?

What did you see instead?

code erroring

$ go run .

# example.com/greetings
../greetings/greetings.go:12:20: too many return values
        have (string, error)
        want (string)
../greetings/greetings.go:16:21: too many return values
        have (string, nil)
        want (string)
@mainjzb
Copy link

mainjzb commented May 8, 2024

https://go.dev/play/p/Pvqs4YTIGih

it's work fine. what do you meaning

@seankhliao seankhliao changed the title go.dev/doc/tutorial/handle-errors: too many return values x/website: doc/tutorial/handle-errors: too many return values May 8, 2024
@gopherbot gopherbot added this to the Unreleased milestone May 8, 2024
@seankhliao
Copy link
Member

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
@golang golang locked and limited conversation to collaborators May 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants