This commit is contained in:
hsutter 2019-01-10 11:34:56 -08:00
parent 88a9ba0640
commit fd9c725549

View File

@ -11308,7 +11308,7 @@ Use a `span`:
void f2(array<int, 10> arr, int pos) // A2: Add local span and use that
{
span<int> a = {arr, pos};
span<int> a = {arr.data(), pos};
a[pos / 2] = 1; // OK
a[pos - 1] = 2; // OK
}