Skip to content

Update loop condition in maglev.go - #6

Merged
kkdai merged 1 commit into
kkdai:masterfrom
berkan-cetinkaya:patch-1
Jun 9, 2026
Merged

kkdai merged 1 commit into
kkdai:masterfrom
berkan-cetinkaya:patch-1

Conversation

@berkan-cetinkaya

Copy link
Copy Markdown
Contributor

This works as-is, but I think the outer for {} makes the loop look more dangerous than it actually is. Since the real goal is to keep filling entries until n == m.m, using for n < m.m would make the termination condition explicit and easier to reason about.

This works as-is, but I think the outer `for {}` makes the loop look more dangerous than it actually is. Since the real goal is to keep filling entries until `n == m.m`, using `for n < m.m` would make the termination condition explicit and easier to reason about.
@kkdai
kkdai merged commit 88dd167 into kkdai:master Jun 9, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants