[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 04/06: doc: Rephrase documentation of 'thunk?'.
From: |
Ludovic Courtès |
Subject: |
[Guile-commits] 04/06: doc: Rephrase documentation of 'thunk?'. |
Date: |
Wed, 27 May 2020 16:48:41 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guile.
commit 9c03e44dcfc118c37d28bb948f4d255c7b755d96
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Wed May 27 22:34:49 2020 +0200
doc: Rephrase documentation of 'thunk?'.
Fixes <https://bugs.gnu.org/41353>.
Reported by Jan Synacek <jsynacek@redhat.com>.
* doc/ref/api-procedures.texi (Procedure Properties): Rephrase
documentation of 'thunk?'.
* libguile/procs.c (scm_thunk_p): Likewise.
---
doc/ref/api-procedures.texi | 4 ++--
libguile/procs.c | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/doc/ref/api-procedures.texi b/doc/ref/api-procedures.texi
index 461112c..81d2cfc 100644
--- a/doc/ref/api-procedures.texi
+++ b/doc/ref/api-procedures.texi
@@ -730,8 +730,8 @@ Return @code{#t} if @var{obj} is a procedure.
@deffn {Scheme Procedure} thunk? obj
@deffnx {C Function} scm_thunk_p (obj)
-Return @code{#t} if @var{obj} is a thunk---a procedure that does
-not accept arguments.
+Return @code{#t} if @var{obj} is a procedure that can be called with
+zero arguments.
@end deffn
@cindex procedure properties
diff --git a/libguile/procs.c b/libguile/procs.c
index 1b5aff4..6a2860e 100644
--- a/libguile/procs.c
+++ b/libguile/procs.c
@@ -1,4 +1,4 @@
-/* Copyright 1995-1997,1999-2001,2006,2008-2013,2017-2018
+/* Copyright 1995-1997,1999-2001,2006,2008-2013,2017-2018,2020
Free Software Foundation, Inc.
This file is part of Guile.
@@ -58,7 +58,8 @@ SCM_DEFINE (scm_procedure_p, "procedure?", 1, 0, 0,
SCM_DEFINE (scm_thunk_p, "thunk?", 1, 0, 0,
(SCM obj),
- "Return @code{#t} if @var{obj} is a thunk.")
+ "Return @code{#t} if @var{obj} is a procedure that can be "
+ "called with zero arguments.")
#define FUNC_NAME s_scm_thunk_p
{
int req, opt, rest;
- [Guile-commits] branch master updated (db4af31 -> 4310567), Ludovic Courtès, 2020/05/27
- [Guile-commits] 02/06: GUILE_PKG bails out when 'pkg-config' is missing, Ludovic Courtès, 2020/05/27
- [Guile-commits] 03/06: doc: Reword unclear sentence about programs., Ludovic Courtès, 2020/05/27
- [Guile-commits] 06/06: doc: Fix a few typos in vm section., Ludovic Courtès, 2020/05/27
- [Guile-commits] 04/06: doc: Rephrase documentation of 'thunk?'.,
Ludovic Courtès <=
- [Guile-commits] 05/06: doc: Fix typos in the manual., Ludovic Courtès, 2020/05/27
- [Guile-commits] 01/06: doc: Add reference to Guile Hall in the manual., Ludovic Courtès, 2020/05/27