Skip to content

Commit fa7d252

Browse files
authored
Merge pull request #1784 from HosseinAssaran/patch-7
Update address and title of github source of rust playground in playground.md
2 parents 850e1cf + 1eda4de commit fa7d252

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/meta/playground.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,21 @@ 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]
45-
- [rust-playground][rust-playground]
52+
- [The Rust Playground On Github][rust-playground-github]
4653
- [The rustdoc Book][rustdoc-book]
4754

4855
[rust-playground]: https://play.rust-lang.org/
49-
[rust-playground]: https://github.com/integer32llc/rust-playground/
56+
[rust-playground-github]: https://github.com/integer32llc/rust-playground/
5057
[mdbook]: https://github.com/rust-lang/mdBook
5158
[official-rust-docs]: https://doc.rust-lang.org/core/
5259
[rustdoc-book]: https://doc.rust-lang.org/rustdoc/what-is-rustdoc.html

0 commit comments

Comments
 (0)