Skip to content

Commit b092429

Browse files
authored
Rollup merge of #141486 - xizheyin:issue-141414, r=GuillaumeGomez
rustdoc book: add argument explanation for `html_playground_url` Fixes #141414 r? `@GuillaumeGomez`
2 parents 3e16a3e + 06e6c90 commit b092429

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/doc/rustdoc/src/write-documentation/the-doc-attribute.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ on your documentation examples make requests to.
8888
```
8989

9090
Now, when you press "run", the button will make a request to this domain. The request
91-
URL will contain 2 query parameters: `code` and `edition` for the code in the documentation
92-
and the Rust edition respectively.
91+
URL will contain 3 query parameters:
92+
1. `code` for the code in the documentation
93+
2. `version` for the Rust channel, e.g. nightly, which is decided by whether `code` contain unstable features
94+
3. `edition` for the Rust edition, e.g. 2024
9395

9496
If you don't use this attribute, there will be no run buttons.
9597

0 commit comments

Comments
 (0)