(mpuz-congratulate): Don't say "1 errors".

This commit is contained in:
Richard M. Stallman 1997-06-18 16:37:01 +00:00
parent 74e2a7b575
commit d576ef75bc

View file

@ -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.")