summary refs log tree commit diff
path: root/src/librustdoc/html
diff options
context:
space:
mode:
authorSteven Allen <steven@stebalien.com>2015-06-04 17:30:28 -0400
committerSteven Allen <steven@stebalien.com>2015-06-04 18:03:51 -0400
commit4c5029a600bc3c350f2371b736698676600a510b (patch)
tree29e83dcd1a4e1b618e373cbf1e2da700b17a589d /src/librustdoc/html
parentdd81d1ebd975d4c812cbb5dd9d8afaefbd53dd2c (diff)
downloadrust-4c5029a600bc3c350f2371b736698676600a510b.tar.gz
rust-4c5029a600bc3c350f2371b736698676600a510b.zip
Fix order of rustdoc arguments.
rust-example-rendered should be a class, not an id.

fixes #26013
Diffstat (limited to 'src/librustdoc/html')
-rw-r--r--src/librustdoc/html/markdown.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs
index 66c5a4e0db2..4982215d02f 100644
--- a/src/librustdoc/html/markdown.rs
+++ b/src/librustdoc/html/markdown.rs
@@ -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());
             })