Skip to content

Commit

Permalink
.NET9 What's new - Runtime - align name with sample code snippet (dot…
Browse files Browse the repository at this point in the history
  • Loading branch information
hakenr authored Sep 4, 2024
1 parent d88a9d1 commit 76d8ac2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/core/whats-new/snippets/dotnet-9/csharp/Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
class Runtime
{
// <SnippetForLoop>
static int Sum(int[] arr)
static int Sum(int[] nums)
{
int sum = 0;
for (int i = 0; i < arr.Length; i++)
for (int i = 0; i < nums.Length; i++)
{
sum += arr[i];
sum += nums[i];
}

return sum;
Expand Down

0 comments on commit 76d8ac2

Please sign in to comment.