Skip to content

Commit 9b845a2

Browse files
authored
occured -> occurred (#168)
1 parent aecef38 commit 9b845a2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Ardalis.Result.AspNetCore/MinimalApiResultExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ internal static Microsoft.AspNetCore.Http.IResult ToMinimalApiResult(this IResul
4949

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

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

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

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

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

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

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

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

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

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

128128
if (result.Errors.Any())
129129
{

src/Ardalis.Result.AspNetCore/ResultStatusMap.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private static ValidationProblemDetails BadRequest(ControllerBase controller, IR
109109

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

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

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

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

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

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

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)