mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-13 22:32:35 +00:00
Fix doc test II
This commit is contained in:
parent
a32d170667
commit
754773f857
1 changed files with 4 additions and 4 deletions
|
@ -45,15 +45,15 @@ impl MDBook {
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// # extern crate mdbook;
|
/// # extern crate mdbook;
|
||||||
/// # use mdbook::MDBook;
|
/// # use mdbook::MDBook;
|
||||||
/// # use bookitem::BookItem;
|
/// # use mdbook::BookItem;
|
||||||
/// # use std::path::Path;
|
/// # use std::path::Path;
|
||||||
/// # fn main() {
|
/// # fn main() {
|
||||||
/// # let mut book = MDBook::new(Path::new("mybook"));
|
/// # let mut book = MDBook::new(Path::new("mybook"));
|
||||||
/// for item in book.iter() {
|
/// for item in book.iter() {
|
||||||
/// match item {
|
/// match item {
|
||||||
/// BookItem::Chapter(section, chapter) => {},
|
/// &BookItem::Chapter(ref section, ref chapter) => {},
|
||||||
/// BookItem::Affix(chapter) => {},
|
/// &BookItem::Affix(ref chapter) => {},
|
||||||
/// BookItem::Spacer => {},
|
/// &BookItem::Spacer => {},
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue