diff options
| author | Muhammad Hamza <muhammadhamza1311@gmail.com> | 2022-06-11 02:03:33 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-11 02:03:33 +0500 |
| commit | 2147a069fffa320c0148c7671044ebd6f7af9528 (patch) | |
| tree | abd66e5a1c262093756c5c18f9aba9e25b8a81a7 | |
| parent | ec55c61305eaf385fc1b93ac9a78284b4d887fe5 (diff) | |
| download | rust-2147a069fffa320c0148c7671044ebd6f7af9528.tar.gz rust-2147a069fffa320c0148c7671044ebd6f7af9528.zip | |
Update the-doc-attribute.md
| -rw-r--r-- | src/doc/rustdoc/src/write-documentation/the-doc-attribute.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/doc/rustdoc/src/write-documentation/the-doc-attribute.md b/src/doc/rustdoc/src/write-documentation/the-doc-attribute.md index 25ef8b5bb91..de604ff0fde 100644 --- a/src/doc/rustdoc/src/write-documentation/the-doc-attribute.md +++ b/src/doc/rustdoc/src/write-documentation/the-doc-attribute.md @@ -87,7 +87,9 @@ on your documentation examples make requests to. #![doc(html_playground_url = "https://playground.example.com/")] ``` -Now, when you press "run", the button will make a request to this domain. +Now, when you press "run", the button will make a request to this domain. The request +URL will contain 2 query parameters: `code` and `edition` for the code in the documentation +and the Rust edition respectively. If you don't use this attribute, there will be no run buttons. |
