Commit d40201b 1 parent 2498e10 commit d40201b Copy full SHA for d40201b
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -196,12 +196,12 @@ tail-recursive calls (and also prevents some polymorphism generalization).
196
196
To get around these problems, it is recommended to use the other provided
197
197
extension around ` let ... in ` and ` let rec ... in ` :
198
198
``` ocaml
199
- let[@landmark] f = body
199
+ let[@landmark] f x1 ... xk = body
200
200
```
201
201
which is expanded in :
202
202
``` ocaml
203
203
let __generated_landmark_2 = Landmark.register "f"
204
- let f = body
204
+ let f x1 ... xk = body
205
205
let f x1 ... xn =
206
206
Landmark.enter __generated_landmark_2;
207
207
let r =
@@ -211,7 +211,7 @@ let f x1 ... xn =
211
211
r
212
212
```
213
213
when the arity ` n ` of ` f ` is obtained by counting the shallow occurrences
214
- of ` fun ... -> ` and ` function ... -> ` in ` body ` . Please note that when using
214
+ of ` fun ... -> ` and ` function ... -> ` in ` body ` in addition to explicit parameters ( ` f x1 ... xk ` ) . Please note that when using
215
215
this annotation with let-rec bindings, only entry-point calls will be recorded.
216
216
For instance, in the following piece of code
217
217
``` ocaml
You can’t perform that action at this time.
0 commit comments