update rustdoc doc test
This commit is contained in:
parent
5b167bf4bb
commit
e61ff7717e
1 changed files with 5 additions and 1 deletions
|
|
@ -8,12 +8,16 @@
|
|||
//! ```
|
||||
//! #![feature(rustc_private)]
|
||||
//!
|
||||
//! extern crate syntax;
|
||||
//!
|
||||
//! use syntax::edition::Edition;
|
||||
//! use rustdoc::html::markdown::{IdMap, Markdown, ErrorCodes};
|
||||
//! use std::cell::RefCell;
|
||||
//!
|
||||
//! let s = "My *markdown* _text_";
|
||||
//! let mut id_map = IdMap::new();
|
||||
//! let html = format!("{}", Markdown(s, &[], RefCell::new(&mut id_map), ErrorCodes::Yes));
|
||||
//! let html = format!("{}", Markdown(s, &[], RefCell::new(&mut id_map),
|
||||
//! ErrorCodes::Yes, Edition::Edition2015));
|
||||
//! // ... something using html
|
||||
//! ```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue