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

Add documentation for multi_cartesian_product when iterator is empty #834

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

yizhepku
Copy link
Contributor

@yizhepku yizhepku commented Jan 3, 2024

Document the correct behavior of nullary cartesian product.

The bug was submitted in 2019 and #603 fixes it just fine. Please just merge both this PR and PR #603 and call it a day. I understand that review time is scarce, but having automated tests pass should be good enough for this kind of change.

@Philippe-Cholet
Copy link
Member

Philippe-Cholet commented Jan 3, 2024

I detect a bit of impatience and I get it, I do and I'm gonna look into it.

The "check format" fails, probably just the trailing spaces. If you could remove them, and possibly squash into one commit, that would be nice.

EDIT: The old 603 is now rebased.

@yizhepku
Copy link
Contributor Author

The "check format" fails, probably just the trailing spaces. If you could remove them, and possibly squash into one commit, that would be nice.

Done.

@Philippe-Cholet Philippe-Cholet self-assigned this Jan 13, 2024
@Philippe-Cholet Philippe-Cholet added this to the next milestone Jan 30, 2024
Copy link

codecov bot commented Jan 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (33541c4) 94.22% compared to head (7ab8480) 94.18%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #834      +/-   ##
==========================================
- Coverage   94.22%   94.18%   -0.04%     
==========================================
  Files          48       48              
  Lines        6670     6676       +6     
==========================================
+ Hits         6285     6288       +3     
- Misses        385      388       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Philippe-Cholet
Copy link
Member

#835 has been merged a few minutes ago. It's now time for your PR.
I rebased to see it work. Then I changed "self" for "the adapted iterator" in your commit.
Thanks for this.

@Philippe-Cholet Philippe-Cholet added this pull request to the merge queue Jan 30, 2024
Merged via the queue into rust-itertools:master with commit 1f69c53 Jan 30, 2024
13 checks passed
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