Skip to content

Commit 854d444

Browse files
committed
fix build errors
1 parent 22cfc48 commit 854d444

File tree

1 file changed

+4
-4
lines changed
  • docs/csharp/fundamentals/types/snippets/anonymous-types

1 file changed

+4
-4
lines changed

docs/csharp/fundamentals/types/snippets/anonymous-types/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ static void TupleDeconstructionExamples()
7474

7575
// <TupleDeconstructionLoop>
7676
var people = new List<(string Name, int Age)>
77-
[
77+
{
7878
("Bob", 25),
7979
("Carol", 35),
8080
("Dave", 40)
81-
];
81+
};
8282

83-
foreach (var (name, age) in people)
83+
foreach (var (personName2, personAge2) in people)
8484
{
85-
Console.WriteLine($"{name} is {age} years old");
85+
Console.WriteLine($"{personName2} is {personAge2} years old");
8686
}
8787
// </TupleDeconstructionLoop>
8888
}

0 commit comments

Comments
 (0)