Skip to content

Commit

Permalink
occured -> occurred (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
Persistent13 committed Feb 22, 2024
1 parent aecef38 commit 9b845a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/Ardalis.Result.AspNetCore/MinimalApiResultExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ result.Status switch

private static Microsoft.AspNetCore.Http.IResult UnprocessableEntity(IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

foreach (var error in result.Errors) details.Append("* ").Append(error).AppendLine();

Expand All @@ -62,7 +62,7 @@ private static Microsoft.AspNetCore.Http.IResult UnprocessableEntity(IResult res

private static Microsoft.AspNetCore.Http.IResult NotFoundEntity(IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

if (result.Errors.Any())
{
Expand All @@ -82,7 +82,7 @@ private static Microsoft.AspNetCore.Http.IResult NotFoundEntity(IResult result)

private static Microsoft.AspNetCore.Http.IResult ConflictEntity(IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

if (result.Errors.Any())
{
Expand All @@ -102,7 +102,7 @@ private static Microsoft.AspNetCore.Http.IResult ConflictEntity(IResult result)

private static Microsoft.AspNetCore.Http.IResult CriticalEntity(IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

if (result.Errors.Any())
{
Expand All @@ -123,7 +123,7 @@ private static Microsoft.AspNetCore.Http.IResult CriticalEntity(IResult result)

private static Microsoft.AspNetCore.Http.IResult UnavailableEntity(IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

if (result.Errors.Any())
{
Expand Down
10 changes: 5 additions & 5 deletions src/Ardalis.Result.AspNetCore/ResultStatusMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static ValidationProblemDetails BadRequest(ControllerBase controller, IR

private static ProblemDetails UnprocessableEntity(ControllerBase controller, IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

foreach (var error in result.Errors) details.Append("* ").Append(error).AppendLine();

Expand All @@ -122,7 +122,7 @@ private static ProblemDetails UnprocessableEntity(ControllerBase controller, IRe

private static ProblemDetails NotFoundEntity(ControllerBase controller, IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

foreach (var error in result.Errors) details.Append("* ").Append(error).AppendLine();

Expand All @@ -135,7 +135,7 @@ private static ProblemDetails NotFoundEntity(ControllerBase controller, IResult

private static ProblemDetails ConflictEntity(ControllerBase controller, IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

foreach (var error in result.Errors) details.Append("* ").Append(error).AppendLine();

Expand All @@ -148,7 +148,7 @@ private static ProblemDetails ConflictEntity(ControllerBase controller, IResult

private static ProblemDetails CriticalEntity(ControllerBase controller, IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

foreach (var error in result.Errors) details.Append("* ").Append(error).AppendLine();

Expand All @@ -161,7 +161,7 @@ private static ProblemDetails CriticalEntity(ControllerBase controller, IResult

private static ProblemDetails UnavailableEntity(ControllerBase controller, IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

foreach (var error in result.Errors) details.Append("* ").Append(error).AppendLine();

Expand Down

0 comments on commit 9b845a2

Please sign in to comment.