fix panic message

This commit is contained in:
Vinzenz Schroeter 2025-03-02 13:28:23 +01:00
parent 59137b6357
commit 111f35b242

View file

@ -79,6 +79,6 @@ pub trait Grid<T> {
let width = self.width();
assert!(x < width, "cannot access index [{x}, {y}] because x is outside of bounds [0..{width})");
let height = self.height();
assert!(y < height, "cannot access index [{x}, {y}] because x is outside of bounds [0..{height})");
assert!(y < height, "cannot access index [{x}, {y}] because y is outside of bounds [0..{height})");
}
}