This is an automated email from the git hooks/post-receive script.

lloda pushed a commit to branch main
in repository guile.

The following commit(s) were added to refs/heads/main by this push:
     new 1e3b5390e Fix example in syntax-rules doc
1e3b5390e is described below

commit 1e3b5390e3c24e66013118e9751db4de5025a4a2
Author: Ekaitz Zarraga <eka...@elenq.tech>
AuthorDate: Mon Aug 7 20:23:42 2023 +0200

    Fix example in syntax-rules doc
    
    * doc/ref/api-macros.texi (Macros): Fix doc1 macro example
    
    Fixes debbugs.gnu.org/65132.
---
 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)

Reply via email to