1
Fork 0

Update the-doc-attribute.md

This commit is contained in:
Muhammad Hamza 2022-06-11 02:03:33 +05:00 committed by GitHub
parent ec55c61305
commit 2147a069ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.