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

pwrite: allow writes to empty slice #92

Closed
wants to merge 1 commit into from

Conversation

baloo
Copy link

@baloo baloo commented Nov 18, 2023

slice[len..] is a valid subslice, this is going to generate an empty subslice, but this won't be considered out of range.

https://play.rust-lang.org/?version=stable&mode=release&edition=2021&gist=31f38d269157a3f6c6ac7019d912456f

cc @RaitoBezarius

`slice[len..]` is a valid subslice, this is going to generate an empty
subslice, but this won't be considered out of range.

https://play.rust-lang.org/?version=stable&mode=release&edition=2021&gist=31f38d269157a3f6c6ac7019d912456f
@baloo
Copy link
Author

baloo commented Nov 18, 2023

Duplicate of #81

@baloo baloo closed this Nov 18, 2023
@baloo baloo deleted the baloo/pwrite/allow-empty-slice branch November 19, 2023 18:16
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.

1 participant