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

2.7 Code snippet -> Named return params #59

Closed
ghost opened this issue May 21, 2016 · 3 comments
Closed

2.7 Code snippet -> Named return params #59

ghost opened this issue May 21, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented May 21, 2016

func location(name, city string) (name, continent string)
should be

func location(name, city string) (region, continent string)

Running the current cod in the playground will return:

prog.go:5: duplicate argument name

However, the linked playground code is correct.

@ghost
Copy link
Author

ghost commented May 21, 2016

I'm wondering if I'm imagining / misunderstanding here. If we check the snippet on the live piece, we see "name". On my branch I'm seeing region (unmodified)

@sebouh00
Copy link

Lines 4 and 6 are also missing region.

@ghost
Copy link
Author

ghost commented Dec 1, 2016

Looks like this is covered in commit/bbc12dc748867ce1c59e499a41ced639d9697289

@ghost ghost closed this as completed Dec 1, 2016
This issue was closed.
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