[m-rev.] for review: Removing + prefix from 3.4.4 Field access examples
Sebastian Godelet
sebastian.godelet+github at gmail.com
Sun Jun 15 01:12:35 AEST 2014
Branches: master, 14.01
In the section 3.4.4 of the reference manual, the code examples
have a leading + in front of the code lines, this patch removes them.
doc/reference_manual.texi:
see above.
Sebastian.
---
doc/reference_manual.texi | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/doc/reference_manual.texi b/doc/reference_manual.texi
index 3993d6c..df9a5d1 100644
--- a/doc/reference_manual.texi
+++ b/doc/reference_manual.texi
@@ -2376,20 +2376,20 @@ The compiler generates some field access
functions for @samp{field1}. The functions generated for the other
fields are similar.
@example
-+:- func type1 ^ field1 = type2.
-+type1(Field1, _) ^ field1 = Field1.
+:- func type1 ^ field1 = type2.
+type1(Field1, _) ^ field1 = Field1.
-+:- func (type1 ^ field1 := type2) = type1.
-+(type1(_, Field2) ^ field1 := Field1) = type1(Field1, Field2).
+:- func (type1 ^ field1 := type2) = type1.
+(type1(_, Field2) ^ field1 := Field1) = type1(Field1, Field2).
@end example
Using these functions and the syntactic sugar described in
@ref{Record syntax}, programmers can write code such as
@example
-+:- func type1 ^ increment_field3 = type1.
+:- func type1 ^ increment_field3 = type1.
-+Term0 ^ increment_field3 =
+Term0 ^ increment_field3 =
Term0 ^ field1 ^ field3 := Term0 ^ field1 ^ field3 + 1.
@end example
--
1.9.3
More information about the reviews
mailing list