diff --git a/aspnetcore/mvc/views/razor.md b/aspnetcore/mvc/views/razor.md index 62c4582f3e..6f26ac0cfc 100644 --- a/aspnetcore/mvc/views/razor.md +++ b/aspnetcore/mvc/views/razor.md @@ -539,7 +539,7 @@ public class Pet ```cshtml @{ - Func petTemplate = @

You have a pet named @item.Name.

; + Func petTemplate = @

You have a pet named @item.Name.

; var pets = new List { @@ -555,7 +555,7 @@ The template is rendered with `pets` supplied by a `foreach` statement: ```cshtml @foreach (var pet in pets) { - @petTemplate2(pet) + @petTemplate(pet) } ```