Skip to content

Commit

Permalink
Merge pull request #4223 from 9il/typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
DmitryOlshansky committed Apr 21, 2016
2 parents 175e7d1 + 81d23b3 commit 098e4b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions std/experimental/ndslice/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ auto matrix = new double[12].sliced(3, 4);
matrix[] = 0;
matrix.diagonal[] = 1;
auto raw = matrix[2];
raw[3] = 6;
auto row = matrix[2];
row[3] = 6;
assert(matrix[2, 3] == 6); // D & C index order
assert(matrix(3, 2) == 6); // Math & Fortran index order
------
Expand Down Expand Up @@ -326,8 +326,8 @@ unittest
matrix[] = 0;
matrix.diagonal[] = 1;

auto raw = matrix[2];
raw[3] = 6;
auto row = matrix[2];
row[3] = 6;
assert(matrix[2, 3] == 6); // D & C index order
assert(matrix(3, 2) == 6); // Math & Fortran index order
}
Expand Down

0 comments on commit 098e4b3

Please sign in to comment.