Skip to content

Commit 9f95666

Browse files
authored
Rollup merge of #82396 - pickfire:patch-5, r=GuillaumeGomez
Add Future trait for doc_spotlight feature doc
2 parents b89357b + 27f7a2e commit 9f95666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/doc/unstable-book/src/language-features/doc-spotlight.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ The tracking issue for this feature is: [#45040]
55
The `doc_spotlight` feature allows the use of the `spotlight` parameter to the `#[doc]` attribute,
66
to "spotlight" a specific trait on the return values of functions. Adding a `#[doc(spotlight)]`
77
attribute to a trait definition will make rustdoc print extra information for functions which return
8-
a type that implements that trait. This attribute is applied to the `Iterator`, `io::Read`, and
9-
`io::Write` traits in the standard library.
8+
a type that implements that trait. For example, this attribute is applied to the `Iterator`,
9+
`io::Read`, `io::Write`, and `Future` traits in the standard library.
1010

1111
You can do this on your own traits, like this:
1212

0 commit comments

Comments
 (0)