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

cleanup: Make Vec.shrink take the new length #1029

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

bclement-ocp
Copy link
Collaborator

This is the documented behavior, and avoids doing a weird dance of computing size - (size - i) rather than just using i everywhere.

This is the documented behavior, and avoids doing a weird dance of
computing `size - (size - i)` rather than just using `i` everywhere.
@Halbaroth Halbaroth merged commit e18c2d1 into OCamlPro:next Jan 19, 2024
13 checks passed
@bclement-ocp bclement-ocp deleted the bclement/vecshrink branch January 23, 2024 08:53
@bclement-ocp bclement-ocp added this to the 2.6.0 milestone Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants