Skip to content

Clarify range comment in array slicing#53879

Merged
BillWagner merged 1 commit into
dotnet:mainfrom
antonymerle:docs/clarify-range-index-comment
May 19, 2026
Merged

Clarify range comment in array slicing#53879
BillWagner merged 1 commit into
dotnet:mainfrom
antonymerle:docs/clarify-range-index-comment

Conversation

@antonymerle
Copy link
Copy Markdown
Contributor

Summary

Clarifies that the 0..5 range expression comment refers to array indexes rather than values, improving readability for readers learning C# range syntax.

Fixes #53871

@antonymerle antonymerle requested review from a team and BillWagner as code owners May 18, 2026 19:41
@dotnetrepoman dotnetrepoman Bot added this to the May 2026 milestone May 18, 2026
@dotnet-policy-service dotnet-policy-service Bot added dotnet-csharp/svc get-started/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels May 18, 2026
Copy link
Copy Markdown
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM, and I'll :shipit: now.

@BillWagner BillWagner enabled auto-merge (squash) May 19, 2026 11:29
@BillWagner BillWagner merged commit c0a0cf6 into dotnet:main May 19, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-csharp/svc get-started/subsvc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify range comment in array slicing example to avoid confusion between indexes and values

2 participants