summaryrefslogtreecommitdiffhomepage
path: root/common-lisp.html.markdown
diff options
context:
space:
mode:
authorven <vendethiel@hotmail.fr>2015-10-04 21:09:31 +0200
committerven <vendethiel@hotmail.fr>2015-10-04 21:09:31 +0200
commit3c4afff4cc29215d489c4212afa460ab1b5a78b0 (patch)
tree1f8864d9669316f1e82a653d0e3e7741ae165863 /common-lisp.html.markdown
parenta07e94471412edbf7b5a95bfd81fa732cb2e66d7 (diff)
parent68fc9b5c1f71adcbbbd53711e9a5692a8372b8cf (diff)
Merge pull request #1336 from thePsguy/patch-3
{common-lisp}Issue #1157 comment for '-p'
Diffstat (limited to 'common-lisp.html.markdown')
-rw-r--r--common-lisp.html.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/common-lisp.html.markdown b/common-lisp.html.markdown
index f9f64d68..e0597e94 100644
--- a/common-lisp.html.markdown
+++ b/common-lisp.html.markdown
@@ -175,7 +175,8 @@ nil ; for false - and the empty list
:age 5))
*rover* ; => #S(DOG :NAME "rover" :BREED "collie" :AGE 5)
-(dog-p *rover*) ; => t ;; ewww)
+(dog-p *rover*) ; => true #| -p signifies "predicate". It's used to
+ check if *rover* is an instance of dog. |#
(dog-name *rover*) ; => "rover"
;; Dog-p, make-dog, and dog-name are all created by defstruct!