Skip to content

Commit 86bcefd

Browse files
committed
Fix generic attributes rule
Attributes can go on any kind of generic parameter
1 parent d695a9a commit 86bcefd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/types/generics/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ fn bar<const N: usize>() -> Foo<{ N }> { todo!() } // ok
518518
r[generics.parameters.attributes]
519519
## Attributes
520520

521-
Generic lifetime and type parameters allow [attributes] on them. There are no built-in attributes that do anything in this position, although custom derive attributes may give meaning to it.
521+
Generic parameters allow [attributes] on them. There are no built-in attributes that do anything in this position, although custom derive attributes may give meaning to it.
522522

523523
This example shows using a custom derive attribute to modify the meaning of a generic parameter.
524524

0 commit comments

Comments
 (0)