CommunityToolkit
CommunityToolkit copied to clipboard
Error in first code example of Span2D<T>
There is an error in the first example (line 12).
It should be span[1, 2] = 20;
instead of span[2, 1] = 20;
Now the example throws an exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
Document Details
⚠ Do not edit this section. It is required for docs.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