mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
fix printer in struct docs
* doc/ref/api-compound.texi (Vtables): Fix example printer.
This commit is contained in:
parent
b0e4051e9e
commit
fb0a63e879
1 changed files with 5 additions and 5 deletions
|
@ -2797,11 +2797,11 @@ structure.
|
|||
@example
|
||||
(make-vtable "prpw"
|
||||
(lambda (struct port)
|
||||
(display "#<")
|
||||
(display (struct-ref 0))
|
||||
(display " and ")
|
||||
(display (struct-ref 1))
|
||||
(display ">")))
|
||||
(display "#<" port)
|
||||
(display (struct-ref struct 0) port)
|
||||
(display " and " port)
|
||||
(display (struct-ref struct 1) port)
|
||||
(display ">" port)))
|
||||
@end example
|
||||
@end deffn
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue