diff --git a/aspnetcore/diagnostics/asp0004.md b/aspnetcore/diagnostics/asp0004.md index 36fc6855a1..2ec6e0d003 100644 --- a/aspnetcore/diagnostics/asp0004.md +++ b/aspnetcore/diagnostics/asp0004.md @@ -38,4 +38,4 @@ app.MapGet("/todos/{id}", (int id) => Results.Json(new Todo { .. })); ## When to suppress warnings -Do ***not*** suppress a warning from this rule. Misplaced attributes can result in unexpected behavior at runtime. +Do ***not*** suppress a warning from this rule. Returning an `IActionResult` that doesn't implement `IResult` results in serializing the result instance rather than executing the result.