Skip to content

Commit 817e7f4

Browse files
Convert tabs to spaces
1 parent 70109c4 commit 817e7f4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

release-notes/10.0/preview/preview1/runtime.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ Consider the C-style approach of looping over an array:
1717
```csharp
1818
static int Sum(int[] array)
1919
{
20-
int sum = 0;
21-
for (int i = 0; i < array.Length; i++)
22-
{
23-
sum += array[i];
24-
}
25-
return sum;
20+
int sum = 0;
21+
for (int i = 0; i < array.Length; i++)
22+
{
23+
sum += array[i];
24+
}
25+
return sum;
2626
}
2727
```
2828

@@ -31,13 +31,13 @@ This code shape is easy for the JIT to optimize, mainly because there aren't any
3131
```csharp
3232
static int Sum(int[] array)
3333
{
34-
int sum = 0;
34+
int sum = 0;
3535
IList<int> temp = array;
36-
foreach (var num in temp)
37-
{
38-
sum += num;
39-
}
40-
return sum;
36+
foreach (var num in temp)
37+
{
38+
sum += num;
39+
}
40+
return sum;
4141
}
4242
```
4343

0 commit comments

Comments
 (0)