We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a32d170 commit 754773fCopy full SHA for 754773f
src/book/mdbook.rs
@@ -45,15 +45,15 @@ impl MDBook {
45
/// ```no_run
46
/// # extern crate mdbook;
47
/// # use mdbook::MDBook;
48
- /// # use bookitem::BookItem;
+ /// # use mdbook::BookItem;
49
/// # use std::path::Path;
50
/// # fn main() {
51
/// # let mut book = MDBook::new(Path::new("mybook"));
52
/// for item in book.iter() {
53
/// match item {
54
- /// BookItem::Chapter(section, chapter) => {},
55
- /// BookItem::Affix(chapter) => {},
56
- /// BookItem::Spacer => {},
+ /// &BookItem::Chapter(ref section, ref chapter) => {},
+ /// &BookItem::Affix(ref chapter) => {},
+ /// &BookItem::Spacer => {},
57
/// }
58
59
///
0 commit comments