CommunityToolkit
CommunityToolkit copied to clipboard
Span2D<T> sample has a small bug.
The sample code span[2, 1] = 20;
throws an index out of change exception.
To become consistent with the sample output, it should be span[1, 1] = 20;
.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 76e5fcd3-5281-930d-fb79-3683bdb96814
- Version Independent ID: fa3f3025-caad-1064-954e-6016903b571d
- Content: Span2D<T> and ReadOnlySpan2D<T> - Windows Community Toolkit
- Content Source: docs/high-performance/Span2D.md
- Product: community-toolkit
- GitHub Login: @Sergio0694
- Microsoft Alias: mhawker