Skip to content

fix the iter bug of losing the first element - #12

Open
yangke wants to merge 3 commits into
avsej:masterfrom
yangke:master
Open

yangke wants to merge 3 commits into
avsej:masterfrom
yangke:master

Conversation

@yangke

@yangke yangke commented Dec 21, 2019

Copy link
Copy Markdown
Contributor

Do not skip the first non-zero item when creating the iterator.

Make sure the index is increased in the loop when searching for the next available element.
fix bug  of lossing the last element, and unify the logic.
do not skip the first non-zero item when creating the iterator.

@juicyslew juicyslew left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Solid.

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