Skip to content

Commit

Permalink
Fix PRINT-UNPRINTABLE-OBJECT
Browse files Browse the repository at this point in the history
There is no Common Lisp operator named PRINT-UNPRINTABLE-OBJECT. Given the context, it is certain that PRINT-UNREADABLE-OBJECT (www.lispworks.com/documentation/lw51/CLHS/Body/m_pr_unr.htm) was meant instead.
  • Loading branch information
phoe authored Oct 27, 2022
1 parent 8638b26 commit fbce7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lispguide.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2087,7 +2087,7 @@ Robert Brown
</p>
<CODE_SNIPPET>
(defmethod print-object ((p person) stream)
(print-unprintable-object (p stream :type t :identity t)
(print-unreadable-object (p stream :type t :identity t)
(with-slots (first-name last-name) p
(safe-format stream "~a ~a" first-name last-name))))
</CODE_SNIPPET>
Expand Down

0 comments on commit fbce7fd

Please sign in to comment.