From: Ekaitz Zarraga <ekaitz@elenq.tech>
To: 65132@debbugs.gnu.org
Subject: bug#65132: [PATCH] fix cond1 macro
Date: Mon, 07 Aug 2023 18:27:05 +0000 [thread overview]
Message-ID: <XRbVinGjytujN-sW7mORaEcOmvJZlR33N7DxYBjlJYck4jZXrh628_FFadSjEVkgJTHXGTZeQQgWztCXSQ-nVpo6HdJIcTLS_xV8_lijHiI=@elenq.tech> (raw)
From ab6e4980ea301b5d1e14a98464e5de3e726984f1 Mon Sep 17 00:00:00 2001
From: Ekaitz Zarraga <ekaitz@elenq.tech>
Date: Mon, 7 Aug 2023 20:23:42 +0200
Subject: [PATCH] fix cond1 macro
* doc/ref/api-macros.texi (Macros): Fix doc1 macro example
---
doc/ref/api-macros.texi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/ref/api-macros.texi b/doc/ref/api-macros.texi
index 7fdf578c7..f13ac0136 100644
--- a/doc/ref/api-macros.texi
+++ b/doc/ref/api-macros.texi
@@ -229,10 +229,10 @@ Literals are used to match specific datums in an expression, like the use of
((cond1 test => fun)
(let ((exp test))
(if exp (fun exp) #f)))
- ((cond1 test exp exp* ...)
- (if test (begin exp exp* ...)))
((cond1 else exp exp* ...)
- (begin exp exp* ...))))
+ (begin exp exp* ...))
+ ((cond1 test exp exp* ...)
+ (if test (begin exp exp* ...)))))
(define (square x) (* x x))
(cond1 10 => square)
--
2.41.0
next reply other threads:[~2023-08-07 18:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-07 18:27 Ekaitz Zarraga [this message]
2023-08-07 20:15 ` bug#65132: [PATCH] fix cond1 macro Timothy Sample
2023-09-29 17:02 ` bug#65132: lloda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='XRbVinGjytujN-sW7mORaEcOmvJZlR33N7DxYBjlJYck4jZXrh628_FFadSjEVkgJTHXGTZeQQgWztCXSQ-nVpo6HdJIcTLS_xV8_lijHiI=@elenq.tech' \
--to=ekaitz@elenq.tech \
--cc=65132@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).