diff --git a/docs/core/whats-new/snippets/dotnet-9/csharp/Runtime.cs b/docs/core/whats-new/snippets/dotnet-9/csharp/Runtime.cs index 89a479aac4dd1..9da000f07457b 100644 --- a/docs/core/whats-new/snippets/dotnet-9/csharp/Runtime.cs +++ b/docs/core/whats-new/snippets/dotnet-9/csharp/Runtime.cs @@ -7,12 +7,12 @@ class Runtime { // - 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;