Commit ea87336c authored by Pierre Letouzey's avatar Pierre Letouzey
Browse files

typo, sorry

parent a0315672
......@@ -304,7 +304,7 @@ soit on la déconstruit (via une syntaxe telle que `let (x,y) = ... in ...`.
Exemple : nombres de fibonacci successifs
```ocaml
let fibs n =
let rec fibs n =
if n = 0 then (1,1)
else
let (a,b) = fibs (n-1) in
......
......@@ -205,7 +205,7 @@ soit on la déconstruit (via une syntaxe telle que `let (x,y) = ... in ...`.
Exemple : nombres de fibonacci successifs
```ocaml
let fibs n =
let rec fibs n =
if n = 0 then (1,1)
else
let (a,b) = fibs (n-1) in
......
......@@ -276,7 +276,7 @@ or access all components at once (via a syntax such as `let (x,y) = ... in ...`)
Example : computing two following Fibonacci numbers efficiently.
```ocaml
let fibs n =
let rec fibs n =
if n = 0 then (1,1)
else
let (a,b) = fibs (n-1) in
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment