Skip to content

Commit

Permalink
Update ChimpLineByLine.rst
Browse files Browse the repository at this point in the history
super minor: use `==` for int comparison in the example (I see this was already fixed in the source)
  • Loading branch information
don-patterson authored Mar 11, 2021
1 parent 2cc9d81 commit 47fd8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reST/tut/ChimpLineByLine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ look at each function individually in this section. ::
raise SystemExit(message)
image = image.convert()
if colorkey is not None:
if colorkey is -1:
if colorkey == -1:
colorkey = image.get_at((0, 0))
image.set_colorkey(colorkey, RLEACCEL)
return image, image.get_rect()
Expand Down

0 comments on commit 47fd8b4

Please sign in to comment.