summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2016-01-06 04:04:15 +0800
committerAdam Bard <github@adambard.com>2016-01-06 04:04:15 +0800
commitb41359b92b5b0a1c69f0c4892bc5c63e46d43f77 (patch)
tree28a77bea8eed9b78ba3ab42ddc880376014bd547
parentc0ee680db88a8da155716ea2f6235acf41344f70 (diff)
parent2f85645c9f988663c2f584fb23392d873fc3c8e9 (diff)
Merge pull request #2055 from davydovanton/patch-1
[common-lisp/en] Fix code in examples
-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