Skip to content

Commit e0f6ed8

Browse files
committed
Rollup merge of #26017 - Stebalien:fix-rustdoc, r=alexcrichton
rust-example-rendered should be a class, not an id. fixes #26013
2 parents c0d8be4 + 4c5029a commit e0f6ed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/markdown.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ pub fn render(w: &mut fmt::Formatter, s: &str, print_toc: bool) -> fmt::Result {
252252
s.push_str(&format!("<span class='rusttest'>{}</span>", Escape(&test)));
253253
});
254254
s.push_str(&highlight::highlight(&text,
255-
None,
256-
Some("rust-example-rendered")));
255+
Some("rust-example-rendered"),
256+
None));
257257
let output = CString::new(s).unwrap();
258258
hoedown_buffer_puts(ob, output.as_ptr());
259259
})

0 commit comments

Comments
 (0)