Fix a couple of typos (#17978)

pull/18033/head
Kirk Larkin 2020-04-27 19:25:02 +01:00 committed by GitHub
parent 77a5b97e6f
commit 76022e4e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -401,7 +401,7 @@ In the following example, a middleware uses the <xref:Microsoft.AspNetCore.Routi
Tokens within `{}` define route parameters that are bound if the route is matched. More than one route parameter can be defined in a route segment, but route parameters must be separated by a literal value. For example, `{controller=Home}{action=Index}` isn't a valid route, since there's no literal value between `{controller}` and `{action}`. Route parameters must have a name and may have additional attributes specified.
Literal text other than route parameters (for example, `{id}`) and the path separator `/` must match the text in the URL. Text matching is case-insensitive and based on the decoded representation of the URLs path. To match a literal route parameter delimiter `{` or `}`, escape the delimiter by repeating the character. For example `{{` or `}}`.
Literal text other than route parameters (for example, `{id}`) and the path separator `/` must match the text in the URL. Text matching is case-insensitive and based on the decoded representation of the URL's path. To match a literal route parameter delimiter `{` or `}`, escape the delimiter by repeating the character. For example `{{` or `}}`.
Asterisk `*` or double asterisk `**`:

View File

@ -467,7 +467,7 @@ In some cases, an HTTP 500 error is returned with ambiguous routes. Use [logging
For convenience, attribute routes support token replacement for reserved route parameters by enclosing a token in one of the following:
* Square braces: `[]`
* Square brackets: `[]`
* Curly braces: `{}`
The tokens `[action]`, `[area]`, and `[controller]` are replaced with the values of the action name, area name, and controller name from the action where the route is defined:
@ -1212,7 +1212,7 @@ Razor Pages routing and MVC controller routing share an implementation. Informat
## Token replacement in route templates ([controller], [action], [area])
For convenience, attribute routes support *token replacement* by enclosing a token in square-braces (`[`, `]`). The tokens `[action]`, `[area]`, and `[controller]` are replaced with the values of the action name, area name, and controller name from the action where the route is defined. In the following example, the actions match URL paths as described in the comments:
For convenience, attribute routes support *token replacement* by enclosing a token in square-brackets (`[`, `]`). The tokens `[action]`, `[area]`, and `[controller]` are replaced with the values of the action name, area name, and controller name from the action where the route is defined. In the following example, the actions match URL paths as described in the comments:
[!code-csharp[](routing/samples/2.x/main/Controllers/ProductsController.cs?range=7-11,13-17,20-22)]