From 7731806d372cf07b27f0ae96c6d8a8b3d4684bbd Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Fri, 22 Oct 2021 14:21:36 -1000 Subject: [PATCH] Update asp0004.md (#23606) * Update asp0004.md * Update aspnetcore/diagnostics/asp0004.md --- aspnetcore/diagnostics/asp0004.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.