From d0c5d5e829ab4894e46910dbdb206adc58034c77 Mon Sep 17 00:00:00 2001 From: GitHubPang <61439577+GitHubPang@users.noreply.github.com> Date: Fri, 26 Nov 2021 08:31:48 +0800 Subject: [PATCH] Fix typo (#24073) Remove duplicated word "following" --- aspnetcore/diagnostics/asp0007.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/diagnostics/asp0007.md b/aspnetcore/diagnostics/asp0007.md index 3b1f527175..f90c619c59 100644 --- a/aspnetcore/diagnostics/asp0007.md +++ b/aspnetcore/diagnostics/asp0007.md @@ -22,7 +22,7 @@ A route parameter is declared as required in the Delegate definition but is mark ## Rule description -When an endpoint is declared, optionality of parameters can be declared in both the route template and in the route handler arguments. When a parameter is declared as optional in the handler, it must also be declared as optional in the route template. For example, GET `/todos` fails to resolve a match for the following following code: +When an endpoint is declared, optionality of parameters can be declared in both the route template and in the route handler arguments. When a parameter is declared as optional in the handler, it must also be declared as optional in the route template. For example, GET `/todos` fails to resolve a match for the following code: ```csharp app.MapGet("/todos/{id}", (int? id) => {});