Hi, I found a small error in the docs for the pattern matching module:

https://www.gnu.org/software/guile/manual/html_node/Pattern-Matching.html

There should be no "exp" in these argument lists:

Scheme Syntax: match-lambda exp clause1 clause2 …
Scheme Syntax: match-lambda* exp clause1 clause2 …

The attached patch fixes this.

-Paul


>From 502a6022e6e059a96f73a0b907b02b4e797e5a65 Mon Sep 17 00:00:00 2001
From: Paul Morris <p...@paulwmorris.com>
Date: Sat, 17 Nov 2018 08:54:06 -0500
Subject: [PATCH] Fix argument list in match-lambda docs

* doc/ref/match.texi: Fix argument list for match-lambda.
---
 doc/ref/match.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/ref/match.texi b/doc/ref/match.texi
index 0fc5105d1..f5ea43118 100644
--- a/doc/ref/match.texi
+++ b/doc/ref/match.texi
@@ -216,7 +216,7 @@ one-element list containing a @var{person} whose first slot is
 The @code{(ice-9 match)} module also provides the following convenient
 syntactic sugar macros wrapping around @code{match}.
 
-@deffn {Scheme Syntax} match-lambda exp clause1 clause2 @dots{}
+@deffn {Scheme Syntax} match-lambda clause1 clause2 @dots{}
 Create a procedure of one argument that matches its argument against
 each clause, and returns the result of evaluating the corresponding
 expressions.
@@ -236,7 +236,7 @@ expressions.
 @result{} world
 @end example
 
-@deffn {Scheme Syntax} match-lambda* exp clause1 clause2 @dots{}
+@deffn {Scheme Syntax} match-lambda* clause1 clause2 @dots{}
 Create a procedure of any number of arguments that matches its argument
 list against each clause, and returns the result of evaluating the
 corresponding expressions.
-- 
2.17.1

Reply via email to