about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-01-22 16:25:59 +0530
committerManish Goregaokar <manishsmail@gmail.com>2018-01-22 16:25:59 +0530
commitfe93adad2c4f7a9709e44f157d97f2fe623c0236 (patch)
tree3f62f395ddd2ac23174a699ebc86fcf984f0f194
parentdc5475257f02e489f4107b8666dd342a31dff86a (diff)
downloadrust-fe93adad2c4f7a9709e44f157d97f2fe623c0236.tar.gz
rust-fe93adad2c4f7a9709e44f157d97f2fe623c0236.zip
Update to new commonmark arg
-rw-r--r--src/librustdoc/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs
index 01c2a5620da..6347c4a58dd 100644
--- a/src/librustdoc/lib.rs
+++ b/src/librustdoc/lib.rs
@@ -503,10 +503,10 @@ where R: 'static + Send, F: 'static + Send + FnOnce(Output) -> R {
     let crate_name = matches.opt_str("crate-name");
     let crate_version = matches.opt_str("crate-version");
     let plugin_path = matches.opt_str("plugin-path");
-    let render_type = if matches.opt_present("enable-commonmark") {
-        RenderType::Pulldown
-    } else {
+    let render_type = if matches.opt_present("disable-commonmark") {
         RenderType::Hoedown
+    } else {
+        RenderType::Pulldown
     };
 
     info!("starting to run rustc");