From 67768115d7faa8c9da63a6b5c347adab107403d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 17 Nov 2012 15:34:49 +0100 Subject: [PATCH] doc: Fix typo in `set-record-type-printer!' doc. * module/srfi/srfi-9/gnu.scm (set-record-type-printer!): Change the parameter name to `proc'. * doc/ref/api-compound.texi (SRFI-9 Records): Update accordingly. --- doc/ref/api-compound.texi | 4 ++-- module/srfi/srfi-9/gnu.scm | 6 +++--- 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)