Merge pull request #2055 from davydovanton/patch-1

[common-lisp/en] Fix code in examples
This commit is contained in:
Adam Bard 2016-01-06 04:04:15 +08:00
commit b41359b92b

View File

@ -339,7 +339,7 @@ nil ; for false - and the empty list
;; The () in the above is the list of arguments for the function
(defun hello (name)
(format nil "Hello, ~a " name))
(format nil "Hello, ~a" name))
(hello "Steve") ; => "Hello, Steve"
@ -430,7 +430,7 @@ nil ; for false - and the empty list
(defun walker (n)
(if (zerop n)
:walked
(walker (1- n))))
(walker (- n 1))))
(walker 5) ; => :walked