mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
[common-lisp/en] Fix code in examples
This commit is contained in:
parent
adba73ccb9
commit
2f85645c9f
@ -339,7 +339,7 @@ nil ; for false - and the empty list
|
|||||||
|
|
||||||
;; The () in the above is the list of arguments for the function
|
;; The () in the above is the list of arguments for the function
|
||||||
(defun hello (name)
|
(defun hello (name)
|
||||||
(format nil "Hello, ~a " name))
|
(format nil "Hello, ~a" name))
|
||||||
|
|
||||||
(hello "Steve") ; => "Hello, Steve"
|
(hello "Steve") ; => "Hello, Steve"
|
||||||
|
|
||||||
@ -430,7 +430,7 @@ nil ; for false - and the empty list
|
|||||||
(defun walker (n)
|
(defun walker (n)
|
||||||
(if (zerop n)
|
(if (zerop n)
|
||||||
:walked
|
:walked
|
||||||
(walker (1- n))))
|
(walker (- n 1))))
|
||||||
|
|
||||||
(walker 5) ; => :walked
|
(walker 5) ; => :walked
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user