[m-rev.] for review: fix a comment

Ian MacLarty maclarty at csse.unimelb.edu.au
Thu Apr 28 17:54:46 AEST 2011

For review by anyone.

Branches: main

Change the comment describing the behaviour of parsing_utils.separated_list to
match its actual behaviour.

I didn't change the behaviour to match the comment, because the test case
already tests that the predicate fails for empty sequences, so that seems
likely to have been the intended behaviour.

    As above.

Index: library/parsing_utils.m
RCS file: /home/mercury1/repository/mercury/library/parsing_utils.m,v
retrieving revision 1.7
diff -u -r1.7 parsing_utils.m
--- library/parsing_utils.m	20 Apr 2011 01:19:44 -0000	1.7
+++ library/parsing_utils.m	28 Apr 2011 07:47:05 -0000
@@ -304,7 +304,7 @@
     T::out, S::in, S::out, ps::in, ps::out) is semidet.
     % separated_list(Separator, P, Src, Xs, !S, !PS) is like
-    % zero_or_more(P, Src, Xs, !S, !PS) except that successive applications of
+    % one_or_more(P, Src, Xs, !S, !PS) except that successive applications of
     % P must be separated by punct(Separator, Src, _, !PS).
 :- pred separated_list(string::in,
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au

More information about the reviews mailing list