diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-06-05 11:20:28 +0200 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-06-05 11:20:28 +0200 |
| commit | e0f6ed859554221f84f007973590c5942e13139b (patch) | |
| tree | 36c5d40f5b4817233d892e13fce234279316dce7 | |
| parent | c0d8be4094674852baa5f8d923448bc38c47b966 (diff) | |
| parent | 4c5029a600bc3c350f2371b736698676600a510b (diff) | |
| download | rust-e0f6ed859554221f84f007973590c5942e13139b.tar.gz rust-e0f6ed859554221f84f007973590c5942e13139b.zip | |
Rollup merge of #26017 - Stebalien:fix-rustdoc, r=alexcrichton
rust-example-rendered should be a class, not an id. fixes #26013
| -rw-r--r-- | src/librustdoc/html/markdown.rs | 4 |
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()); }) |
