Skip to content

Commit 4c5029a

Browse files
committed
Fix order of rustdoc arguments.
rust-example-rendered should be a class, not an id. fixes #26013
1 parent dd81d1e commit 4c5029a

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)