Skip to content

Fix off-by-one error in peek - #368

Merged
annevk merged 1 commit into
mainfrom
annevk/peek-zero-based
Oct 19, 2026
Merged

annevk merged 1 commit into
mainfrom
annevk/peek-zero-based

Conversation

@annevk

@annevk annevk commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Infra list indices are zero-based, so peek skipped the first item and could go out-of-bounds. This aligns peek with implementations and tests.

Also remove "run these steps" from "To X" sentences.

Fixes #367.


Preview | Diff

Infra list indices are zero-based, so peek skipped the first item and could go out-of-bounds. This aligns peek with implementations and tests.

Also remove "run these steps" from "To X" sentences.

Fixes #367.
@annevk
annevk merged commit be17ac5 into main Oct 19, 2026
2 checks passed
@annevk
annevk deleted the annevk/peek-zero-based branch October 19, 2026 23:29
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.

"Peek" indexes the I/O queue from 1, skipping the first item

1 participant