[m-rev.] trivial diff: fix typos in comments

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Jun 28 00:30:38 AEST 2011


Branches: main

library/array.m:
library/version_array.m:
 	Fix some typos in comments.

Julien.

Index: library/array.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/library/array.m,v
retrieving revision 1.189
diff -u -r1.189 array.m
--- library/array.m	10 Jun 2011 06:45:52 -0000	1.189
+++ library/array.m	27 Jun 2011 14:15:30 -0000
@@ -125,7 +125,7 @@

      % array.generate(Size, Generate) = Array:
      % Create an array with bounds from 0 to Size - 1 using the function
-    % Generate to set the intial value of each element of the array.
+    % Generate to set the initial value of each element of the array.
      % The initial value of the element at index K will be the result of
      % calling the function Generate(K).
      %
@@ -134,7 +134,7 @@

      % array.generate_foldl(Size, Generate, Array, !Acc):
      % As above, but using a predicate with an accumulator threaded through it
-    % to generate the inital value of each element.
+    % to generate the initial value of each element.
      %
  :- pred array.generate_foldl(int, pred(int, T, A, A), array(T), A, A).
  :- mode array.generate_foldl(in, in(pred(in, out, in, out) is det),
Index: library/version_array.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/library/version_array.m,v
retrieving revision 1.35
diff -u -r1.35 version_array.m
--- library/version_array.m	20 May 2011 16:54:29 -0000	1.35
+++ library/version_array.m	27 Jun 2011 14:14:32 -0000
@@ -62,7 +62,7 @@
      %
  :- func empty = version_array(T).

-    % init(N, X returns an array fo size N with each itme initialised to X.
+    % init(N, X returns an array of size N with each item initialised to X.
      %
  :- func init(int, T) = version_array(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