File tree 1 file changed +2
-2
lines changed
src/doc/unstable-book/src/language-features
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ The tracking issue for this feature is: [#45040]
5
5
The ` doc_spotlight ` feature allows the use of the ` spotlight ` parameter to the ` #[doc] ` attribute,
6
6
to "spotlight" a specific trait on the return values of functions. Adding a ` #[doc(spotlight)] `
7
7
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.
10
10
11
11
You can do this on your own traits, like this:
12
12
You can’t perform that action at this time.
0 commit comments