Skip to content

Commit b199566

Browse files
authored
Clarify variable name (#46798)
Fixes #46793 The previous code worked, but this clarifies its use.
1 parent 73ee782 commit b199566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/linq/standard-query-operators/snippets/standard-query-operators/SelectProjectionExamples.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private static void SelectManyMethodSyntax()
9090
// <SelectManyMethod>
9191
List<string> phrases = ["an apple a day", "the quick brown fox"];
9292

93-
var query = phrases.SelectMany(phrases => phrases.Split(' '));
93+
var query = phrases.SelectMany(phrase => phrase.Split(' '));
9494

9595
foreach (string s in query)
9696
{

0 commit comments

Comments
 (0)