Skip to content

Commit f204f66

Browse files
committed
Fix grammar for TypePathFn
1 parent f6ed74f commit f204f66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: 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>
@@ -386,6 +386,7 @@ mod without { // crate::without
386386
[_LiteralExpression_]: expressions/literal-expr.md
387387
[_SimplePathSegment_]: #simple-paths
388388
[_Type_]: types.md#type-expressions
389+
[_TypeNoBounds_]: types.md#type-expressions
389390
[literal]: expressions/literal-expr.md
390391
[item]: items.md
391392
[variable]: variables.md

0 commit comments

Comments
 (0)