Remove duplicated word "following"
pull/24075/head
GitHubPang 2021-11-26 08:31:48 +08:00 committed by GitHub
parent 784f1cf4f9
commit d0c5d5e829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) => {});