1
0
Fork 0

vector2d: fix a silly typo

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2022-12-12 10:30:39 +01:00
parent 837a579827
commit fabef3ee41
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -29,7 +29,7 @@ where
<usize as TryFrom<T>>::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]
}