Skip to content

Commit e61ff77

Browse files
update rustdoc doc test
1 parent 5b167bf commit e61ff77

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustdoc/html/markdown.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@
88
//! ```
99
//! #![feature(rustc_private)]
1010
//!
11+
//! extern crate syntax;
12+
//!
13+
//! use syntax::edition::Edition;
1114
//! use rustdoc::html::markdown::{IdMap, Markdown, ErrorCodes};
1215
//! use std::cell::RefCell;
1316
//!
1417
//! let s = "My *markdown* _text_";
1518
//! let mut id_map = IdMap::new();
16-
//! let html = format!("{}", Markdown(s, &[], RefCell::new(&mut id_map), ErrorCodes::Yes));
19+
//! let html = format!("{}", Markdown(s, &[], RefCell::new(&mut id_map),
20+
//! ErrorCodes::Yes, Edition::Edition2015));
1721
//! // ... something using html
1822
//! ```
1923

0 commit comments

Comments
 (0)