summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/ref/api-compound.texi4
-rw-r--r--module/srfi/srfi-9/gnu.scm6
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/ref/api-compound.texi b/doc/ref/api-compound.texi
index 0b2106540..27dbcbf53 100644
--- a/doc/ref/api-compound.texi
+++ b/doc/ref/api-compound.texi
@@ -2381,9 +2381,9 @@ You may use @code{set-record-type-printer!} to customize the default printing
behavior of records. This is a Guile extension and is not part of SRFI-9. It
is located in the @nicode{(srfi srfi-9 gnu)} module.
-@deffn {Scheme Syntax} set-record-type-printer! name thunk
+@deffn {Scheme Syntax} set-record-type-printer! name proc
Where @var{type} corresponds to the first argument of @code{define-record-type},
-and @var{thunk} is a procedure accepting two arguments, the record to print, and
+and @var{proc} is a procedure accepting two arguments, the record to print, and
an output port.
@end deffn
diff --git a/module/srfi/srfi-9/gnu.scm b/module/srfi/srfi-9/gnu.scm
index eb3506487..219bcdebb 100644
--- a/module/srfi/srfi-9/gnu.scm
+++ b/module/srfi/srfi-9/gnu.scm
@@ -30,9 +30,9 @@
set-field
set-fields))
-(define (set-record-type-printer! type thunk)
- "Set a custom printer THUNK for TYPE."
- (struct-set! type vtable-index-printer thunk))
+(define (set-record-type-printer! type proc)
+ "Set PROC as the custom printer for TYPE."
+ (struct-set! type vtable-index-printer proc))
(define-syntax-rule (define-immutable-record-type name ctor pred fields ...)
((@@ (srfi srfi-9) %define-record-type)