summaryrefslogtreecommitdiffhomepage
path: root/common-lisp.html.markdown
diff options
context:
space:
mode:
authorAdam <adam@adambard.com>2016-01-08 14:35:53 +0800
committerAdam <adam@adambard.com>2016-01-08 14:35:53 +0800
commitef28fa69775ba064dfed212e034b5caae7edb7b9 (patch)
treed3a30be274822754414b438fe9b9c102edc09630 /common-lisp.html.markdown
parent8ad537a9ba9889234a63c5a38caeab3e225856e4 (diff)
parent04166190367a93236e7173901dff7ae9661736ba (diff)
Merge branch 'master' of github.com:adambard/learnxinyminutes-docs
Diffstat (limited to 'common-lisp.html.markdown')
-rw-r--r--common-lisp.html.markdown4
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