Simplify MDBook::iter doc

The original was a little awkward, and I'm not sure what the tuple
syntax was intending to convey.
This commit is contained in:
Eric Huss 2025-07-22 11:22:31 -07:00
parent 9229e80499
commit b8a7b6e846

View file

@ -134,9 +134,7 @@ impl MDBook {
})
}
/// Returns a flat depth-first iterator over the elements of the book,
/// it returns a [`BookItem`] enum:
/// `(section: String, bookitem: &BookItem)`
/// Returns a flat depth-first iterator over the [`BookItem`]s of the book.
///
/// ```no_run
/// # use mdbook_driver::MDBook;