summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2020-10-14 22:54:00 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2020-10-14 22:54:00 +0100
commitcf7d6a1d6b6866106e491122baff961ae5280f61 (patch)
treee585301a29ce40cc8a3c1b5c2f9755708254c34e
parent02aa835017406e5250e21a8537637af0a7c02cd4 (diff)
downloadswig-cf7d6a1d6b6866106e491122baff961ae5280f61.tar.gz
Ocaml rst doc corrections
-rw-r--r--SphinxDocs/source/Manual/Ocaml.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/SphinxDocs/source/Manual/Ocaml.rst b/SphinxDocs/source/Manual/Ocaml.rst
index 1affe847f..8d9a16d20 100644
--- a/SphinxDocs/source/Manual/Ocaml.rst
+++ b/SphinxDocs/source/Manual/Ocaml.rst
@@ -122,19 +122,19 @@ Here are the main rewriting rules:
- f(C_list [ ... ]) as in
*
- atoi'("0") or _exit'(0)
- - atoi (C_list [ C_string "0" ]) or _exit_(C_list_[_C_int_0_])
+ - atoi (C_list [ C_string "0" ]) or _exit (C_list [ C_int 0 ])
*
- object -> method ( ... )
- (invoke object) "method" (C_list [ ...])
*
- object 'binop argument as in a \'+=_b
- - (invoke object) "+=" argument as in (invoke_a)_"+="_b
+ - (invoke object) "+=" argument as in (invoke_a) "+="_b
*
- Note that because camlp4 always recognizes << and >>, they are replaced by
lsl_and_lsr_in_operator_names.
- -
+ -
*
- - 'unop object as in !_a'
+ - 'unop object as in ! a'
- (invoke a) "!" C_void
*
- Smart pointer access like this
@@ -770,7 +770,6 @@ Director Usage Example
| let xa = x_arg as float |
| and ya = y_arg as float in |
| (point_in_triangle pts xa ya) to bool |
-| |
| | _ -> raise (Failure "cover needs two double arguments.")) |
| | _ -> (invoke ob) meth args ;; |
| |