From 601db917528a8acc77f8c8185c4d32710f8234bc Mon Sep 17 00:00:00 2001 From: Kirk Larkin <6025110+serpent5@users.noreply.github.com> Date: Wed, 19 Jan 2022 11:04:48 +0000 Subject: [PATCH] Fix line highlights (#24662) --- aspnetcore/includes/RP-MVC/validation-net6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/includes/RP-MVC/validation-net6.md b/aspnetcore/includes/RP-MVC/validation-net6.md index 8b23f65f62..b8f3a5cd91 100644 --- a/aspnetcore/includes/RP-MVC/validation-net6.md +++ b/aspnetcore/includes/RP-MVC/validation-net6.md @@ -9,7 +9,7 @@ The DataAnnotations namespace provides a set of built-in validation attributes t Update the `Movie` class to take advantage of the built-in `Required`, `StringLength`, `RegularExpression`, and `Range` validation attributes. -[!code-csharp[](~/tutorials/first-mvc-app/start-mvc/sample/MvcMovie60/Models/Movie.cs?name=FinalSnippet&highlight=11-12,18-20,24-26,29-31)] +[!code-csharp[](~/tutorials/first-mvc-app/start-mvc/sample/MvcMovie60/Models/Movie.cs?name=FinalSnippet&highlight=11-12,19,24-26,29-31)] The validation attributes specify behavior that you want to enforce on the model properties they're applied to: