Skip to content

Conversation

raphink
Copy link
Collaborator

@raphink raphink commented Aug 27, 2015

Deleting elements of an array while iterating on it
results in never seeing the last element.

> a = [1,2,3]
 => [1, 2, 3]
> a.each do |e|
>   p a
>   a.delete(e)
> end
[1, 2, 3]
[2, 3]
 => [2]

Deleting elements of an array while iterating on it
results in never seeing the last element.

    > a = [1,2,3]
     => [1, 2, 3]
    > a.each do |e|
    >   p a
    >   a.delete(e)
    > end
    [1, 2, 3]
    [2, 3]
     => [2]
@raphink
Copy link
Collaborator Author

raphink commented Aug 27, 2015

@skywinder all builds are currently failing on the master branch, I'm willing to rebase once they pass.

@skywinder
Copy link
Member

@raphink Great attention to details. Thank you again! Can't understand, why build start failing.
But your code as absolutely correct, so I will merge it now!

skywinder added a commit that referenced this pull request Aug 27, 2015
Do not alter pull_requests while iterating on it
@skywinder skywinder merged commit 127ffee into github-changelog-generator:master Aug 27, 2015
@skywinder
Copy link
Member

btw: @raphink You help me a lot with cool enhancements and your code always is very clean. Thanks again. 👍
May I propose to add you to a Collaborators of this project?

@raphink
Copy link
Collaborator Author

raphink commented Aug 27, 2015

Just one more project to watch for, that can't hurt ;-)

@raphink
Copy link
Collaborator Author

raphink commented Aug 31, 2015

Fancy a patch release @skywinder ?

@skywinder
Copy link
Member

I thought that can fix some other things before release, but don't have a time.
So 1.8.3 released, thanks!

@raphink
Copy link
Collaborator Author

raphink commented Aug 31, 2015

Thank you!

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