Skip to content

Commit

Permalink
update rustdoc doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
QuietMisdreavus committed May 6, 2019
1 parent 5b167bf commit e61ff77
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/librustdoc/html/markdown.rs
Expand Up @@ -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
//! ```

Expand Down

0 comments on commit e61ff77

Please sign in to comment.