Skip to content

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Sep 15, 2025

This adds the Book::chapters iterator (and for_each_chapter_mut) to iterate over non-draft chapters. This is a common pattern I keep encountering, and I figure it might simplify things. It runs a little risk that callers may not be properly handling every item type, but I think it should be ok.

This adds the `Book::chapters` iterator (and `for_each_chapter_mut`) to
iterate over non-draft chapters. This is a common pattern I keep
encountering, and I figure it might simplify things. It runs a little
risk that callers may not be properly handling every item type, but I
think it should be ok.
@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Sep 15, 2025
@ehuss ehuss enabled auto-merge September 15, 2025 14:12
@ehuss ehuss added this pull request to the merge queue Sep 15, 2025
Merged via the queue into rust-lang:master with commit f393e22 Sep 15, 2025
14 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: waiting on a review label Sep 15, 2025
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