diff options
author | Adam <adam@adambard.com> | 2016-01-08 14:35:53 +0800 |
---|---|---|
committer | Adam <adam@adambard.com> | 2016-01-08 14:35:53 +0800 |
commit | ef28fa69775ba064dfed212e034b5caae7edb7b9 (patch) | |
tree | d3a30be274822754414b438fe9b9c102edc09630 /common-lisp.html.markdown | |
parent | 8ad537a9ba9889234a63c5a38caeab3e225856e4 (diff) | |
parent | 04166190367a93236e7173901dff7ae9661736ba (diff) |
Merge branch 'master' of github.com:adambard/learnxinyminutes-docs
Diffstat (limited to 'common-lisp.html.markdown')
-rw-r--r-- | common-lisp.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common-lisp.html.markdown b/common-lisp.html.markdown index 2b1f5de4..9a23bc26 100644 --- a/common-lisp.html.markdown +++ b/common-lisp.html.markdown @@ -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 |