Skip to content

Commit 8f5738e

Browse files
committed
Add more car/cdr examples to shortdoc
* lisp/emacs-lisp/shortdoc.el (list): Add more car/cdr examples.
1 parent 22a5482 commit 8f5738e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lisp/emacs-lisp/shortdoc.el

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,13 @@ There can be any number of :example/:result elements."
503503
(flatten-tree
504504
:eval (flatten-tree '(1 (2 3) 4)))
505505
(car
506-
:eval (car '(one two three)))
506+
:eval (car '(one two three))
507+
:eval (car '(one . two))
508+
:eval (car nil))
507509
(cdr
508-
:eval (cdr '(one two three)))
510+
:eval (cdr '(one two three))
511+
:eval (cdr '(one . two))
512+
:eval (cdr nil))
509513
(last
510514
:eval (last '(one two three)))
511515
(butlast

0 commit comments

Comments
 (0)