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: