Skip to content

Commit 9104f17

Browse files
authored
Merge pull request #1281 from ehuss/fix-TypePathFn
Fix grammar for TypePathFn
2 parents 8227666 + e33f255 commit 9104f17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/paths.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ S::f(); // Calls the inherent impl.
128128
> &nbsp;&nbsp; _PathIdentSegment_ (`::`<sup>?</sup> ([_GenericArgs_] | _TypePathFn_))<sup>?</sup>
129129
>
130130
> _TypePathFn_ :\
131-
> `(` _TypePathFnInputs_<sup>?</sup> `)` (`->` [_Type_])<sup>?</sup>
131+
> `(` _TypePathFnInputs_<sup>?</sup> `)` (`->` [_TypeNoBounds_])<sup>?</sup>
132132
>
133133
> _TypePathFnInputs_ :\
134134
> [_Type_] (`,` [_Type_])<sup>\*</sup> `,`<sup>?</sup>
@@ -395,6 +395,7 @@ mod without { // crate::without
395395
[_LiteralExpression_]: expressions/literal-expr.md
396396
[_SimplePathSegment_]: #simple-paths
397397
[_Type_]: types.md#type-expressions
398+
[_TypeNoBounds_]: types.md#type-expressions
398399
[literal]: expressions/literal-expr.md
399400
[item]: items.md
400401
[variable]: variables.md

0 commit comments

Comments
 (0)