@@ -37,7 +37,7 @@ public static IActionResult ToActionResult(this Result<Unit> result)
3737 /// <param name="onError">
3838 /// The function that is invoked if this <paramref name="result"/> is a <see cref="Failure{TData}"/>.
3939 /// It is responsible for mapping the <see cref="Error"/> to <see cref="ProblemDetails"/>.
40- /// If this function returns <code >null</code > then the default error mapping conventions are used.
40+ /// If this function returns <c >null</c > then the default error mapping conventions are used.
4141 /// This therefore provides a way to customize the error mapping from <see cref="Error"/> to <see cref="ProblemDetails"/>.
4242 /// </param>
4343 /// <returns>
@@ -47,7 +47,7 @@ public static IActionResult ToActionResult(this Result<Unit> result)
4747 /// </returns>
4848 public static IActionResult ToActionResult (
4949 this Result < Unit > result ,
50- Func < Error , ProblemDetails > onError )
50+ Func < Error , ProblemDetails > ? onError )
5151 {
5252 return result . Match ( _ => new NoContentResult ( ) , error => error . ToActionResult ( onError ) ) ;
5353 }
@@ -77,7 +77,7 @@ public static async Task<IActionResult> ToActionResult(this Task<Result<Unit>> r
7777 /// <param name="onError">
7878 /// The function that is invoked if this <paramref name="resultTask"/> is a <see cref="Failure{TData}"/>.
7979 /// It is responsible for mapping the <see cref="Error"/> to <see cref="ProblemDetails"/>.
80- /// If this function returns <code >null</code > then the default error mapping conventions are used.
80+ /// If this function returns <c >null</c > then the default error mapping conventions are used.
8181 /// This therefore provides a way to customize the error mapping from <see cref="Error"/> to <see cref="ProblemDetails"/>.
8282 /// </param>
8383 /// <returns>
@@ -123,7 +123,7 @@ public static ActionResult<TData> ToActionResult<TData>(this Result<TData> resul
123123 /// <param name="onError">
124124 /// The function that is invoked if this <paramref name="result"/> is a <see cref="Failure{TData}"/>.
125125 /// It is responsible for mapping the <see cref="Error"/> to <see cref="ProblemDetails"/>.
126- /// If this function returns <code >null</code > then the default error mapping conventions are used.
126+ /// If this function returns <c >null</c > then the default error mapping conventions are used.
127127 /// This therefore provides a way to customize the error mapping from <see cref="Error"/> to <see cref="ProblemDetails"/>.
128128 /// </param>
129129 /// <returns>
@@ -133,7 +133,7 @@ public static ActionResult<TData> ToActionResult<TData>(this Result<TData> resul
133133 /// </returns>
134134 public static ActionResult < TData > ToActionResult < TData > (
135135 this Result < TData > result ,
136- Func < Error , ProblemDetails > onError )
136+ Func < Error , ProblemDetails > ? onError )
137137 {
138138 return result . Match ( data => new ActionResult < TData > ( data ) , error => error . ToActionResult ( onError ) ) ;
139139 }
@@ -171,7 +171,7 @@ public static async Task<ActionResult<TData>> ToActionResult<TData>(this Task<Re
171171 /// <param name="onError">
172172 /// The function that is invoked if this <paramref name="resultTask"/> is a <see cref="Failure{TData}"/>.
173173 /// It is responsible for mapping the <see cref="Error"/> to <see cref="ProblemDetails"/>.
174- /// If this function returns <code >null</code > then the default error mapping conventions are used.
174+ /// If this function returns <c >null</c > then the default error mapping conventions are used.
175175 /// This therefore provides a way to customize the error mapping from <see cref="Error"/> to <see cref="ProblemDetails"/>.
176176 /// </param>
177177 /// <returns>
@@ -227,7 +227,7 @@ public static IActionResult ToActionResult<TData>(
227227 /// <param name="onError">
228228 /// The function that is invoked if this <paramref name="result"/> is a <see cref="Failure{TData}"/>.
229229 /// It is invoked to map the <see cref="Error"/> to <see cref="ProblemDetails"/>.
230- /// If this function returns <code >null</code > then the default error mapping conventions are used.
230+ /// If this function returns <c >null</c > then the default error mapping conventions are used.
231231 /// This therefore provides a way to customize the error mapping from <see cref="Error"/> to <see cref="ProblemDetails"/>.
232232 /// </param>
233233 /// <returns>
@@ -238,7 +238,7 @@ public static IActionResult ToActionResult<TData>(
238238 public static IActionResult ToActionResult < TData > (
239239 this Result < TData > result ,
240240 Func < TData , IActionResult > onSuccess ,
241- Func < Error , ProblemDetails > onError )
241+ Func < Error , ProblemDetails > ? onError )
242242 {
243243 return result . Match ( onSuccess , error => error . ToActionResult ( onError ) ) ;
244244 }
@@ -286,7 +286,7 @@ public static async Task<IActionResult> ToActionResult<TData>(
286286 /// <param name="onError">
287287 /// The function that is invoked if this <paramref name="resultTask"/> is a <see cref="Failure{TData}"/>.
288288 /// It is invoked to map the <see cref="Error"/> to <see cref="ProblemDetails"/>.
289- /// If this function returns <code >null</code > then the default error mapping conventions are used.
289+ /// If this function returns <c >null</c > then the default error mapping conventions are used.
290290 /// This therefore provides a way to customize the error mapping from <see cref="Error"/> to <see cref="ProblemDetails"/>.
291291 /// </param>
292292 /// <returns>
0 commit comments