CommunityToolkit icon indicating copy to clipboard operation
CommunityToolkit copied to clipboard

Error in first code example of Span2D<T>

Open Code-Chops opened this issue 2 years ago • 0 comments

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.

Code-Chops avatar Aug 16 '22 17:08 Code-Chops