Skip to content

Commit 1eda4de

Browse files
Make an example using html_playground_url in playground.md
1 parent 3e3444a commit 1eda4de

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/meta/playground.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ button that says "Run", which opens the code sample up in a new tab in Rust
3939
Playground. This feature is enabled if you use the `#[doc]` attribute called
4040
[`html_playground_url`][html-playground-url].
4141

42+
```
43+
#![doc(html_playground_url = "https://play.rust-lang.org/")]
44+
//! ```
45+
//! println!("Hello Wolrd");
46+
//! ```
47+
```
48+
4249
### See also:
4350

4451
- [The Rust Playground][rust-playground]

0 commit comments

Comments
 (0)