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

Update psuedocode to describe CRuby behaviour in specs of Array#each #1175

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

herwinw
Copy link
Member

@herwinw herwinw commented Jun 29, 2024

Increase the index after the yield operation, the old code would just keep yieling with the first element.

Increase the index after the yield operation, the old code would just
keep yieling with the first element.
@andrykonchin
Copy link
Member

Makes sense. Thank you!

@andrykonchin andrykonchin merged commit 8afc241 into ruby:master Jun 29, 2024
14 checks passed
@herwinw herwinw deleted the array_each_psuedocode branch June 30, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants