Update asp0004.md (#23606)

* Update asp0004.md

* Update aspnetcore/diagnostics/asp0004.md
pull/23612/head
Rick Anderson 2021-10-22 14:21:36 -10:00 committed by GitHub
parent ab78441d44
commit 7731806d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.