Procházet zdrojové kódy

fix assertion information in Grid.set() (#347)

Mingxuan Li před 2 roky
rodič
revize
2f6e3117ca
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      minigrid/core/grid.py

+ 1 - 1
minigrid/core/grid.py

@@ -65,7 +65,7 @@ class Grid:
     def set(self, i: int, j: int, v: WorldObj | None):
         assert (
             0 <= i < self.width
-        ), f"column index {j} outside of grid of width {self.width}"
+        ), f"column index {i} outside of grid of width {self.width}"
         assert (
             0 <= j < self.height
         ), f"row index {j} outside of grid of height {self.height}"