Skip to content

Commit 1d1c782

Browse files
committed
Fix generics rule.
1 parent d58f2ea commit 1d1c782

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/items/implementations.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
>    _InherentImpl_ | _TraitImpl_
66
>
77
> _InherentImpl_ :\
8-
> &nbsp;&nbsp; `impl` [_GenericsDecl_] [_Type_] [_WhereClause_]<sup>?</sup> `{`\
8+
> &nbsp;&nbsp; `impl` [_Generics_]&nbsp;[_Type_]&nbsp;[_WhereClause_]<sup>?</sup> `{`\
99
> &nbsp;&nbsp; &nbsp;&nbsp; [_InnerAttribute_]<sup>\*</sup>\
1010
> &nbsp;&nbsp; &nbsp;&nbsp; _InherentImplItem_<sup>\*</sup>\
1111
> &nbsp;&nbsp; `}`
@@ -16,7 +16,7 @@
1616
> &nbsp;&nbsp; ( [_ConstantItem_] | _Method_ )
1717
>
1818
> _TraitImpl_ :\
19-
> &nbsp;&nbsp; `unsafe`<sup>?</sup> `impl` [_GenericsDecl_] `!`<sup>?</sup>
19+
> &nbsp;&nbsp; `unsafe`<sup>?</sup> `impl` [_Generics_] `!`<sup>?</sup>
2020
> [_TypePath_] `for` [_Type_]\
2121
> &nbsp;&nbsp; [_WhereClause_]<sup>?</sup>\
2222
> &nbsp;&nbsp; `{`\
@@ -193,11 +193,10 @@ attributes].
193193
[IDENTIFIER]: identifiers.html
194194
[_BlockWithInnerAttributes_]: items/functions.html
195195
[_ConstantItem_]: items/constant-items.html
196-
[_Generics_]: items/generics.html
197196
[_FunctionFront_]: items/functions.html
198197
[_FunctionParam_]: items/functions.html
199198
[_FunctionReturnType_]: items/functions.html
200-
[_GenericsDecl_]: types.html#type-parameters
199+
[_Generics_]: items/generics.html
201200
[_InnerAttribute_]: attributes.html
202201
[_Lifetime_]: trait-bounds.html
203202
[_OuterAttribute_]: attributes.html

src/items/traits.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> **<sup>Syntax</sup>**\
44
> _Trait_ :\
55
> &nbsp;&nbsp; `unsafe`<sup>?</sup> `trait` [IDENTIFIER]&nbsp;
6-
> [_GenericsDecl_]<sup>?</sup>
6+
> [_Generics_]<sup>?</sup>
77
> [_WhereClause_]<sup>?</sup> `{`\
88
> &nbsp;&nbsp;&nbsp;&nbsp; _TraitItem_<sup>\*</sup>\
99
> &nbsp;&nbsp; `}`
@@ -145,7 +145,7 @@ The [trait implementation] must also include the `unsafe` keyword.
145145

146146
[IDENTIFIER]: identifiers.html
147147
[_Expression_]: expressions.html
148-
[_GenericsDecl_]: types.html#type-parameters
148+
[_Generics_]: items/generics.html
149149
[_Method_]: items/implementations.html
150150
[_MethodType_]: items/implementations.html
151151
[_OuterAttribute_]: attributes.html

0 commit comments

Comments
 (0)