From 408bd4c2074f6c67f2230d29dddd830e4c9105fa Mon Sep 17 00:00:00 2001 From: Shadi Namrouti Date: Fri, 18 Jan 2019 01:15:17 +0200 Subject: [PATCH] Update razor.md (#10467) --- aspnetcore/mvc/views/razor.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } ```