[m-rev.] diff: fix record syntax documentation
Simon Taylor
stayl at cs.mu.OZ.AU
Fri Aug 17 13:53:49 AEST 2001
Estimated hours taken: 0.2
Branches: main, release
doc/reference_manual.texi:
Fix bugs in the transformation and examples for field update.
Index: reference_manual.texi
===================================================================
RCS file: /home/mercury1/repository/mercury/doc/reference_manual.texi,v
retrieving revision 1.214
diff -u -u -r1.214 reference_manual.texi
--- reference_manual.texi 2001/07/31 18:02:11 1.214
+++ reference_manual.texi 2001/08/17 03:51:45
@@ -1010,7 +1010,7 @@
transform(Term0 ^ Field(Arg1, @dots{}) ^ Rest := FieldValue) = Term :-
OldFieldValue = Field(Arg1, @dots{}, Term0),
NewFieldValue = transform(OldFieldValue ^ Rest := FieldValue),
- Term = 'Field :='(Arg1, @dots{}, Term, NewFieldValue).
+ Term = 'Field :='(Arg1, @dots{}, Term0, NewFieldValue).
@end example
Examples:
@@ -1026,7 +1026,7 @@
@example
OldField1 = field1(Arg1, Term),
NewField1 = 'field2 :='(Arg2, OldField1, FieldValue),
-Result = 'field1 :='(Arg1, OldField1, NewField1)
+Result = 'field1 :='(Arg1, Term, NewField1)
@end example
@end table
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list