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

Replace "for" loop with "while" loop in [file name] #2158

Open
navjot369 opened this issue Jul 26, 2024 · 1 comment
Open

Replace "for" loop with "while" loop in [file name] #2158

navjot369 opened this issue Jul 26, 2024 · 1 comment

Comments

@navjot369
Copy link

Description

In the file "go.md", there is "for" wirtten that should be a "while" loop instead.

Current code

n := 0
x := 42
for n != x {
  n := guess()
}

Proposed change

Replace "for" with a "while" keyword.

@matheushb
Copy link

In golang, the while loop uses the "for" keyword

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

2 participants