Skip to content

Commit

Permalink
Make an example using html_playground_url in playground.md
Browse files Browse the repository at this point in the history
  • Loading branch information
HosseinAssaran authored Dec 12, 2023
1 parent 3e3444a commit 1eda4de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/meta/playground.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ button that says "Run", which opens the code sample up in a new tab in Rust
Playground. This feature is enabled if you use the `#[doc]` attribute called
[`html_playground_url`][html-playground-url].

```
#![doc(html_playground_url = "https://play.rust-lang.org/")]
//! ```
//! println!("Hello Wolrd");
//! ```
```
### See also:
- [The Rust Playground][rust-playground]
Expand Down

0 comments on commit 1eda4de

Please sign in to comment.