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

im: Add truncate method, VectorDiff variant #35

Merged
merged 1 commit into from
Sep 11, 2023
Merged

im: Add truncate method, VectorDiff variant #35

merged 1 commit into from
Sep 11, 2023

Conversation

jplatte
Copy link
Owner

@jplatte jplatte commented Sep 11, 2023

No description provided.

@jplatte jplatte requested a review from Hywan September 11, 2023 09:45
Comment on lines +201 to +202
/// Does nothing if `len` is greater or equal to the vector's current
/// length.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Usually it panics, but I'm fine with this behavior too.

Copy link
Owner Author

Choose a reason for hiding this comment

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

That's just for imbl, std does the same thing as eyeball-im: jneem/imbl#66

@jplatte jplatte merged commit c19706c into main Sep 11, 2023
4 checks passed
@jplatte jplatte deleted the truncate branch September 11, 2023 13:25
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