Merge pull request #20 from BioGeek/patch-1

Fix typo
This commit is contained in:
Peter Norvig 2017-12-04 07:45:42 -08:00 committed by GitHub
commit 18ac9bfca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@
" \"The eight neighbors (with diagonals).\"\n", " \"The eight neighbors (with diagonals).\"\n",
" x, y = point \n", " x, y = point \n",
" return ((x+1, y), (x-1, y), (x, y+1), (x, y-1),\n", " return ((x+1, y), (x-1, y), (x, y+1), (x, y-1),\n",
" (X+1, y+1), (x-1, y-1), (x+1, y-1), (x-1, y+1))\n", " (x+1, y+1), (x-1, y-1), (x+1, y-1), (x-1, y+1))\n",
"\n", "\n",
"def cityblock_distance(p, q=(0, 0)): \n", "def cityblock_distance(p, q=(0, 0)): \n",
" \"City block distance between two points.\"\n", " \"City block distance between two points.\"\n",