-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
ArrayChunks::into_remainder does not return None when there is no remainder #116000
Comments
Should we even return an Similiar API does not return an |
I think it is worth returning In the slice case, the remainder can always be calculated because it has a length. |
@rossmacarthur Perhaps I am misunderstanding you here, but it seems that you are saying that None is used as an |
The current implementation does not do this; |
Looks like this was changed in #123406, possibly the function can now just return |
I tried this code:
I expected to see this happen: into_remainder returns None when there is no remainder
Instead, this happened: into_remainder returns Some of an iterator with zero elements
The text was updated successfully, but these errors were encountered: