Skip to content

Commit e0059be

Browse files
committed
dont override
1 parent b821700 commit e0059be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ false instanceof Chess.Color // true
9595
1 instanceof Chess.PieceType // true
9696
59 instanceof Chess.Square // true
9797

98-
// NOTE: I'm not using BigInt to represent 'int' in python
98+
// NOTE: I can't use BigInt to represent 'int' in python,
99+
// because in Python squares can be used as an index,
100+
// and in javascript, you can't use BigInt to index arrays
99101
Chess.isSquare(10n) // false
100102
Chess.isSquare(10) // true
101103
Chess.isSquare(3858) // "out of range"

0 commit comments

Comments
 (0)