소스 검색

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

Mingxuan Li 2 년 전
부모
커밋
2f6e3117ca
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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}"