Skip to content

Commit 754773f

Browse files
committed
Fix doc test II
1 parent a32d170 commit 754773f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/book/mdbook.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ impl MDBook {
4545
/// ```no_run
4646
/// # extern crate mdbook;
4747
/// # use mdbook::MDBook;
48-
/// # use bookitem::BookItem;
48+
/// # use mdbook::BookItem;
4949
/// # use std::path::Path;
5050
/// # fn main() {
5151
/// # let mut book = MDBook::new(Path::new("mybook"));
5252
/// for item in book.iter() {
5353
/// match item {
54-
/// BookItem::Chapter(section, chapter) => {},
55-
/// BookItem::Affix(chapter) => {},
56-
/// BookItem::Spacer => {},
54+
/// &BookItem::Chapter(ref section, ref chapter) => {},
55+
/// &BookItem::Affix(ref chapter) => {},
56+
/// &BookItem::Spacer => {},
5757
/// }
5858
/// }
5959
///

0 commit comments

Comments
 (0)