about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-05-24 16:08:48 +0200
committerGitHub <noreply@github.com>2025-05-24 16:08:48 +0200
commitb0924297e1e3eee11718dcbc900e4b2572697b6e (patch)
treeb7545d636cebbe4d1fef9f0cb6e90202d6936a04 /src
parent3e16a3ee9cf45956f271f5c29a9cd44d3c9d4322 (diff)
parent06e6c902045060a16c0260e59956d33c99cc7a96 (diff)
downloadrust-b0924297e1e3eee11718dcbc900e4b2572697b6e.tar.gz
rust-b0924297e1e3eee11718dcbc900e4b2572697b6e.zip
Rollup merge of #141486 - xizheyin:issue-141414, r=GuillaumeGomez
rustdoc book: add argument explanation for `html_playground_url`

Fixes #141414

r? `@GuillaumeGomez`
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustdoc/src/write-documentation/the-doc-attribute.md6
1 files changed, 4 insertions, 2 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 45146993371..6ec93d1746c 100644
--- a/src/doc/rustdoc/src/write-documentation/the-doc-attribute.md
+++ b/src/doc/rustdoc/src/write-documentation/the-doc-attribute.md
@@ -88,8 +88,10 @@ on your documentation examples make requests to.
 ```
 
 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.
+URL will contain 3 query parameters:
+1. `code` for the code in the documentation
+2. `version` for the Rust channel, e.g. nightly, which is decided by whether `code` contain unstable features
+3. `edition` for the Rust edition, e.g. 2024
 
 If you don't use this attribute, there will be no run buttons.