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

Remove potential confusion of indexes and values with enumerate #1142

Merged
merged 1 commit into from
Jan 31, 2018
Merged

Remove potential confusion of indexes and values with enumerate #1142

merged 1 commit into from
Jan 31, 2018

Conversation

thomwiggers
Copy link
Contributor

When encountering enumerate() for the first time, it's kind of confusing where all these items are coming from. The original example enumerates a list of integers. This may confuse people to think that the indexes are coming from the list, like a kind of zip(). If you instead use different types, this isn't possible.

When encountering `enumerate()` for the first time, it's kind of confusing where all these items are coming from. The original example enumerates a list of integers. This may confuse people to think that the indexes are coming from the list, like a kind of `zip()`. If you instead use different types, this isn't possible.
Copy link
Member

@carols10cents carols10cents left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, thanks! ❤️

@carols10cents carols10cents merged commit 14be4d9 into rust-lang:master Jan 31, 2018
@thomwiggers thomwiggers deleted the remove_confusion_of_indexes_and_values branch October 23, 2018 12:44
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