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

Minor modification to reduce lines of code #607

Merged
merged 2 commits into from
Feb 12, 2019

Conversation

paulhauner
Copy link
Contributor

What

Replaces the counter with the index of the loop.

Why

It is functionally the same but uses two less lines of code.

Extra Info

My Rust linter picked this one up, I thought I might share.

Take it or leave it, no objections either way :)

Replaces the counter with the index of the loop. It is functionally the same, but uses two less lines of code.
@JustinDrake
Copy link
Collaborator

Take it or leave it, no objections either way :)

More please 👍

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.

3 participants