[m-rev.] diff: fix argument order in documentation

Peter Wang novalazy at gmail.com
Fri Jul 22 11:26:54 AEST 2011


Branches: main, 11.07

Fix argument ordering in documentation for
`sparse_bitset.member/2' and `tree_bitset.member/2'.

library/sparse_bitset.m:
library/tree_bitset.m:
	As above.

diff --git a/library/sparse_bitset.m b/library/sparse_bitset.m
index 8b21395..37b41bb 100644
--- a/library/sparse_bitset.m
+++ b/library/sparse_bitset.m
@@ -126,7 +126,7 @@
     %
 :- pred contains(sparse_bitset(T)::in, T::in) is semidet <= enum(T).
 
-    % `member(Set, X)' is true iff `X' is a member of `Set'.
+    % `member(X, Set)' is true iff `X' is a member of `Set'.
     % Takes O(rep_size(Set)) time.
     %
 :- pred member(T, sparse_bitset(T)) <= enum(T).
diff --git a/library/tree_bitset.m b/library/tree_bitset.m
index b45dad4..3eea2d7 100644
--- a/library/tree_bitset.m
+++ b/library/tree_bitset.m
@@ -112,7 +112,7 @@
     %
 :- pred contains(tree_bitset(T)::in, T::in) is semidet <= enum(T).
 
-    % `member(Set, X)' is true iff `X' is a member of `Set'.
+    % `member(X, Set)' is true iff `X' is a member of `Set'.
     % Takes O(card(Set)) time for the semidet mode.
     %
 :- pred member(T, tree_bitset(T)) <= enum(T).

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