Grammar fixes (#28956)

pull/28949/head
Tom Dykstra 2023-04-12 09:29:00 -07:00 committed by GitHub
parent 173f46ea39
commit f5940203ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -66,10 +66,10 @@ The <xref:Microsoft.AspNetCore.Http.Results> and <xref:Microsoft.AspNetCore.Http
Returning `TypedResults` rather than `Results` has the following advantages:
* `TypedResults` return strongly typed objects, which can improve code readability, unit testing, and reduce the chance of runtime errors.
* `TypedResults` helpers return strongly typed objects, which can improve code readability, unit testing, and reduce the chance of runtime errors.
* The implementation type [automatically provides the response type metadata for OpenAPI](/aspnet/core/fundamentals/minimal-apis/openapi#describe-response-types) to describe the endpoint.
Consider the follow endpoint, for which a `200 OK` status code with the expected JSON response is produced.
Consider the following endpoint, for which a `200 OK` status code with the expected JSON response is produced.
:::code language="csharp" source="~/tutorials/min-web-api/samples/7.x/todo/Program.cs" id="snippet_11b":::