about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-01-31 01:21:31 +0100
committerGitHub <noreply@github.com>2020-01-31 01:21:31 +0100
commit6c67466f73b1727d148f48cb12d1c4d86fa392fc (patch)
tree2fffa3e7a17477135a4acf5d6a81037eefdfd798 /src/liballoc
parentf60b95aaa151e14380f76264dfd92ae78c05ca6c (diff)
parentbfcfab630ef246c9439897c5351f54989e197a5c (diff)
downloadrust-6c67466f73b1727d148f48cb12d1c4d86fa392fc.tar.gz
rust-6c67466f73b1727d148f48cb12d1c4d86fa392fc.zip
Rollup merge of #68680 - ollie27:doc_alloc_playground, r=Centril
Add `#![doc(html_playground_url = ...)]` to alloc crate

This adds the Run button to code examples just like the core and std docs have.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 38c6fa91cc5..ffa4176cc79 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -60,6 +60,7 @@
 #![stable(feature = "alloc", since = "1.36.0")]
 #![doc(
     html_root_url = "https://doc.rust-lang.org/nightly/",
+    html_playground_url = "https://play.rust-lang.org/",
     issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
     test(no_crate_inject, attr(allow(unused_variables), deny(warnings)))
 )]