Skip to content

Commit

Permalink
Grammar fixes (dotnet#28956)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdykstra authored and Donciavas committed Feb 7, 2024
1 parent e89240c commit 223a5b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aspnetcore/fundamentals/minimal-apis/responses.md
Original file line number Diff line number Diff line change
Expand Up @@ -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":::

Expand Down

0 comments on commit 223a5b7

Please sign in to comment.