Rollup merge of #26017 - Stebalien:fix-rustdoc, r=alexcrichton

rust-example-rendered should be a class, not an id.

fixes #26013
This commit is contained in:
Steve Klabnik 2015-06-05 11:20:28 +02:00
commit e0f6ed8595

View File

@ -252,8 +252,8 @@ pub fn render(w: &mut fmt::Formatter, s: &str, print_toc: bool) -> fmt::Result {
s.push_str(&format!("<span class='rusttest'>{}</span>", Escape(&test)));
});
s.push_str(&highlight::highlight(&text,
None,
Some("rust-example-rendered")));
Some("rust-example-rendered"),
None));
let output = CString::new(s).unwrap();
hoedown_buffer_puts(ob, output.as_ptr());
})