Skip to content

Commit c40645c

Browse files
authored
change variable name (#11119)
Fixes #11070
1 parent a6d9094 commit c40645c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/whats-new/csharp-8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ Console.WriteLine($"The last word is {words[^1]}");
329329
The following code creates a subrange with the words "quick", "brown", and "fox". It includes `words[1]` through `words[3]`. The element `words[4]` is not in the range.
330330

331331
```csharp
332-
var brownFox = words[1..4];
332+
var quickBrownFox = words[1..4];
333333
```
334334

335335
The following code creates a subrange with "lazy" and "dog". It includes `words[^2]` and `words[^1]`. The end index `words[^0]` is not included:

0 commit comments

Comments
 (0)