From b8a7b6e84686ade4587377d7137a82da79d45027 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 22 Jul 2025 11:22:31 -0700 Subject: [PATCH] Simplify `MDBook::iter` doc The original was a little awkward, and I'm not sure what the tuple syntax was intending to convey. --- crates/mdbook-driver/src/mdbook.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/mdbook-driver/src/mdbook.rs b/crates/mdbook-driver/src/mdbook.rs index ab8fa087..701a0161 100644 --- a/crates/mdbook-driver/src/mdbook.rs +++ b/crates/mdbook-driver/src/mdbook.rs @@ -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;