From f204f66a4cdea820d7dbecb0069d6158f87884f8 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 10 Oct 2022 14:30:14 -0700 Subject: [PATCH] Fix grammar for TypePathFn --- src/paths.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/paths.md b/src/paths.md index cb6b24aa0..ea9c43e4b 100644 --- a/src/paths.md +++ b/src/paths.md @@ -128,7 +128,7 @@ S::f(); // Calls the inherent impl. >    _PathIdentSegment_ `::`? ([_GenericArgs_] | _TypePathFn_)? > > _TypePathFn_ :\ -> `(` _TypePathFnInputs_? `)` (`->` [_Type_])? +> `(` _TypePathFnInputs_? `)` (`->` [_TypeNoBounds_])? > > _TypePathFnInputs_ :\ > [_Type_] (`,` [_Type_])\* `,`? @@ -386,6 +386,7 @@ mod without { // crate::without [_LiteralExpression_]: expressions/literal-expr.md [_SimplePathSegment_]: #simple-paths [_Type_]: types.md#type-expressions +[_TypeNoBounds_]: types.md#type-expressions [literal]: expressions/literal-expr.md [item]: items.md [variable]: variables.md