unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#33415: Fix argument list in match-lambda docs
@ 2018-11-17 14:01 Paul Morris
  2019-06-24 13:23 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Morris @ 2018-11-17 14:01 UTC (permalink / raw)
  To: 33415


[-- Attachment #1.1: Type: text/plain, Size: 358 bytes --]

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



[-- Attachment #1.2: Type: text/html, Size: 666 bytes --]

[-- Attachment #2: 0001-Fix-argument-list-in-match-lambda-docs.patch --]
[-- Type: text/x-patch, Size: 1350 bytes --]

From 502a6022e6e059a96f73a0b907b02b4e797e5a65 Mon Sep 17 00:00:00 2001
From: Paul Morris <paul@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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#33415: Fix argument list in match-lambda docs
  2018-11-17 14:01 bug#33415: Fix argument list in match-lambda docs Paul Morris
@ 2019-06-24 13:23 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2019-06-24 13:23 UTC (permalink / raw)
  To: Paul Morris; +Cc: 33415-done

Hi,

Paul Morris <paul@paulwmorris.com> skribis:

> 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 …

Indeed.

>>From 502a6022e6e059a96f73a0b907b02b4e797e5a65 Mon Sep 17 00:00:00 2001
> From: Paul Morris <paul@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.

Applied, thanks!

Ludo’.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-24 13:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-17 14:01 bug#33415: Fix argument list in match-lambda docs Paul Morris
2019-06-24 13:23 ` Ludovic Courtès

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).