diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-07 11:23:14 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-07 17:54:34 -0700 |
| commit | 947f1b66cb1d061bf91410abd5d9ccd9d9b38f7b (patch) | |
| tree | a477503978cdc609349f276031298fc20e4a9890 /src/librustdoc | |
| parent | 0f3183f42b02aee06e920dec18b0f4d1c93e6a77 (diff) | |
| download | rust-947f1b66cb1d061bf91410abd5d9ccd9d9b38f7b.tar.gz rust-947f1b66cb1d061bf91410abd5d9ccd9d9b38f7b.zip | |
book: Emit links to play.rust-lang.org to run examples
Had to fix a bug in `--markdown-playground-url` for markdown files in rustdoc as well as adding some necessary JS to the rustbook output as well. Closes #21553
Diffstat (limited to 'src/librustdoc')
| -rw-r--r-- | src/librustdoc/markdown.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/markdown.rs b/src/librustdoc/markdown.rs index 8c75364d941..6541564d8e2 100644 --- a/src/librustdoc/markdown.rs +++ b/src/librustdoc/markdown.rs @@ -59,7 +59,7 @@ pub fn render(input: &str, mut output: PathBuf, matches: &getopts::Matches, let input_str = load_or_return!(input, 1, 2); let playground = matches.opt_str("markdown-playground-url"); if playground.is_some() { - markdown::PLAYGROUND_KRATE.with(|s| { *s.borrow_mut() = None; }); + markdown::PLAYGROUND_KRATE.with(|s| { *s.borrow_mut() = Some(None); }); } let playground = playground.unwrap_or("".to_string()); |
