Fix comment

This commit is contained in:
Jonny Rhea 2026-03-02 18:40:39 -06:00 committed by GitHub
parent 9895d052da
commit 7abac98d66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -960,7 +960,7 @@ func decodeSingle(x byte) int {
// and n + m <= 30. There are 210 such valid pairs, encoded into a single byte
// that avoids the forbidden range [91, 127].
func decodePair(x byte) (int, int) {
// XOR with 143 remaps the forbidden bytes [91, 127] to an unused corner
// XOR with 143 remaps the forbidden bytes [82, 127] to an unused corner
// of the 16x16 grid below.
k := int(x ^ 143)
// Split into row q and column r of a 16x16 grid. The 210 valid pairs