diff options
| author | Ivan Tham <pickfire@riseup.net> | 2021-02-22 19:02:02 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-22 19:02:02 +0800 |
| commit | 888811b0598aa18c3e41d1c03f4caf6cd794eaa4 (patch) | |
| tree | bca49b8be7c0b80ae94d5ae472cf76362246e956 | |
| parent | 352238d152b6b3f106554e75445bbdd5201671b2 (diff) | |
| download | rust-888811b0598aa18c3e41d1c03f4caf6cd794eaa4.tar.gz rust-888811b0598aa18c3e41d1c03f4caf6cd794eaa4.zip | |
Add Future trait for doc_spotlight feature doc
| -rw-r--r-- | src/doc/unstable-book/src/language-features/doc-spotlight.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/unstable-book/src/language-features/doc-spotlight.md b/src/doc/unstable-book/src/language-features/doc-spotlight.md index 8117755fef1..00a05e509b8 100644 --- a/src/doc/unstable-book/src/language-features/doc-spotlight.md +++ b/src/doc/unstable-book/src/language-features/doc-spotlight.md @@ -5,8 +5,8 @@ The tracking issue for this feature is: [#45040] The `doc_spotlight` feature allows the use of the `spotlight` parameter to the `#[doc]` attribute, to "spotlight" a specific trait on the return values of functions. Adding a `#[doc(spotlight)]` attribute to a trait definition will make rustdoc print extra information for functions which return -a type that implements that trait. This attribute is applied to the `Iterator`, `io::Read`, and -`io::Write` traits in the standard library. +a type that implements that trait. This attribute is applied to the `Iterator`, `io::Read`, +`io::Write` and `Future` traits in the standard library. You can do this on your own traits, like this: |
