Auto merge of #44274 - Mark-Simulacrum:rustdoc-tests, r=alexcrichton

Test rustdoc.

Also fixes the broken tests.

r? @alexcrichton
This commit is contained in:
bors 2017-09-10 01:24:14 +00:00
commit f982ff05db
5 changed files with 79 additions and 13 deletions

View file

@ -16,10 +16,12 @@
//! of `fmt::Display`. Example usage:
//!
//! ```
//! use rustdoc::html::markdown::Markdown;
//! #![feature(rustc_private)]
//!
//! use rustdoc::html::markdown::{RenderType, Markdown};
//!
//! let s = "My *markdown* _text_";
//! let html = format!("{}", Markdown(s));
//! let html = format!("{}", Markdown(s, RenderType::Pulldown));
//! // ... something using html
//! ```