[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 03/03: bug#68507: [PATCH] doc: Fix example in list-trans
From: |
Ludovic Courtès |
Subject: |
[Guile-commits] 03/03: bug#68507: [PATCH] doc: Fix example in list-transduce example. |
Date: |
Wed, 24 Jan 2024 05:28:06 -0500 (EST) |
civodul pushed a commit to branch main
in repository guile.
commit 2556b9a216a112bee1d7fa7de8d0f3316b5d10c9
Author: Tomas Volf <~@wolfsden.cz>
AuthorDate: Tue Jan 16 14:01:06 2024 +0100
bug#68507: [PATCH] doc: Fix example in list-transduce example.
While the `.' might be correct from a grammatical point of view (I do
not know), it turns the example into invalid scheme code, which is not
ideal. New users (like me) might try to copy the whole line and wonder
why it does not work (like I did). So delete it.
* doc/ref/srfi-modules.texi (SRFI-171 General Discussion): Delete the
trailing . from the example.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
doc/ref/srfi-modules.texi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi
index 0cdf56923..09b591e89 100644
--- a/doc/ref/srfi-modules.texi
+++ b/doc/ref/srfi-modules.texi
@@ -5748,7 +5748,7 @@ reducer with result-so-far and the maybe-transformed
input.
A simple example is as following:
@example
-(list-transduce (tfilter odd?) + '(1 2 3 4 5)).
+(list-transduce (tfilter odd?) + '(1 2 3 4 5))
@end example
This first returns a transducer filtering all odd