mirror of https://github.com/rust-lang/reference
Fix grammar for TypePathFn
This commit is contained in:
parent
8227666de1
commit
e33f255728
|
@ -128,7 +128,7 @@ S::f(); // Calls the inherent impl.
|
||||||
> _PathIdentSegment_ (`::`<sup>?</sup> ([_GenericArgs_] | _TypePathFn_))<sup>?</sup>
|
> _PathIdentSegment_ (`::`<sup>?</sup> ([_GenericArgs_] | _TypePathFn_))<sup>?</sup>
|
||||||
>
|
>
|
||||||
> _TypePathFn_ :\
|
> _TypePathFn_ :\
|
||||||
> `(` _TypePathFnInputs_<sup>?</sup> `)` (`->` [_Type_])<sup>?</sup>
|
> `(` _TypePathFnInputs_<sup>?</sup> `)` (`->` [_TypeNoBounds_])<sup>?</sup>
|
||||||
>
|
>
|
||||||
> _TypePathFnInputs_ :\
|
> _TypePathFnInputs_ :\
|
||||||
> [_Type_] (`,` [_Type_])<sup>\*</sup> `,`<sup>?</sup>
|
> [_Type_] (`,` [_Type_])<sup>\*</sup> `,`<sup>?</sup>
|
||||||
|
@ -395,6 +395,7 @@ mod without { // crate::without
|
||||||
[_LiteralExpression_]: expressions/literal-expr.md
|
[_LiteralExpression_]: expressions/literal-expr.md
|
||||||
[_SimplePathSegment_]: #simple-paths
|
[_SimplePathSegment_]: #simple-paths
|
||||||
[_Type_]: types.md#type-expressions
|
[_Type_]: types.md#type-expressions
|
||||||
|
[_TypeNoBounds_]: types.md#type-expressions
|
||||||
[literal]: expressions/literal-expr.md
|
[literal]: expressions/literal-expr.md
|
||||||
[item]: items.md
|
[item]: items.md
|
||||||
[variable]: variables.md
|
[variable]: variables.md
|
||||||
|
|
Loading…
Reference in New Issue