mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 10:27:41 +00:00
(mpuz-congratulate): Don't say "1 errors".
This commit is contained in:
parent
74e2a7b575
commit
d576ef75bc
1 changed files with 2 additions and 1 deletions
|
|
@ -416,8 +416,9 @@ You may abort a game by typing \\<mpuz-mode-map>\\[mpuz-offer-abort]."
|
|||
|
||||
(defun mpuz-congratulate ()
|
||||
"Build a congratulation message when puzzle is solved."
|
||||
(format "Puzzle solved with %d errors. %s"
|
||||
(format "Puzzle solved with %d error%s. %s"
|
||||
mpuz-nb-errors
|
||||
(if (= mpuz-nb-errors 1) "" "s")
|
||||
(cond ((= mpuz-nb-errors 0) "That's perfect !")
|
||||
((= mpuz-nb-errors 1) "That's very good !")
|
||||
((= mpuz-nb-errors 2) "That's good.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue