summaryrefslogtreecommitdiff
path: root/chess-game.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2018-08-09 10:51:04 -0400
committerGitHub <noreply@github.com>2018-08-09 10:51:04 -0400
commit29dd9bb233e149cae62a2277020074f8fec1eec8 (patch)
tree381b8cbac3eedbb0e49fafb36eaf7fd1a974997d /chess-game.el
parent999fcdd7f9c82c3ec2e8343c5de7b4dea53bf8d0 (diff)
parent5bd1e7248bb9bf3b335cbd6bec250866bd165af1 (diff)
Merge pull request #20 from dickmao/master
avoid ask-promotion returning nil
Diffstat (limited to 'chess-game.el')
-rw-r--r--chess-game.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/chess-game.el b/chess-game.el
index aace91b..ed38288 100644
--- a/chess-game.el
+++ b/chess-game.el
@@ -223,7 +223,7 @@ if INDEX is nil)."
(defun chess-game-ply (game &optional index)
"Return a ply of GAME.
-If INDEX is non-nil, the last played ply is returned."
+If INDEX is nil, the last played ply is returned."
(cl-assert game)
(if index
(nth index (chess-game-plies game))