Subject: Fix argument list in match-lambda docs
From: Paul Morris <[email-masked]>
To: [email-masked]
Date: Sat, 17 Nov 2018 09:01:24 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

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 <[email-masked]>
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