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: Variables with initializers #1679

Open
GermanMT opened this issue Jan 1, 2025 · 0 comments
Open

tour: Variables with initializers #1679

GermanMT opened this issue Jan 1, 2025 · 0 comments

Comments

@GermanMT
Copy link

GermanMT commented Jan 1, 2025

Context: https://go-tour-lat.appspot.com/basics/9

The description of this basic says:
A var declaration can include initializers, one per variable. If an initializer is present, the type can be omitted; the variable will take the type of the initializer.

But in the code the integer declaration appears as: var i, j int = 1, 2
It's a small change, but maybe leave it as: var i, j = 1, 2 would make it clearer what is meant.

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