Skip to content

Commit 76d8ac2

Browse files
authored
.NET9 What's new - Runtime - align name with sample code snippet (dotnet#42427)
1 parent d88a9d1 commit 76d8ac2

File tree

1 file changed

+3
-3
lines changed
  • docs/core/whats-new/snippets/dotnet-9/csharp

1 file changed

+3
-3
lines changed

docs/core/whats-new/snippets/dotnet-9/csharp/Runtime.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
class Runtime
88
{
99
// <SnippetForLoop>
10-
static int Sum(int[] arr)
10+
static int Sum(int[] nums)
1111
{
1212
int sum = 0;
13-
for (int i = 0; i < arr.Length; i++)
13+
for (int i = 0; i < nums.Length; i++)
1414
{
15-
sum += arr[i];
15+
sum += nums[i];
1616
}
1717

1818
return sum;

0 commit comments

Comments
 (0)