diff --git a/src/vector2d.rs b/src/vector2d.rs index 742f794..b7ef0c0 100644 --- a/src/vector2d.rs +++ b/src/vector2d.rs @@ -29,7 +29,7 @@ where >::Error: Debug, T: Copy, { - let (x, y): (usize, usize) = (idx.y.try_into().unwrap(), idx.x.try_into().unwrap()); + let (x, y): (usize, usize) = (idx.x.try_into().unwrap(), idx.y.try_into().unwrap()); &v[y][x] }