summaryrefslogtreecommitdiffhomepage
path: root/ocaml.html.markdown
diff options
context:
space:
mode:
authorJohnathan Maudlin <maudlin.johnathan@gmail.com>2014-10-29 22:13:33 -0400
committerJohnathan Maudlin <maudlin.johnathan@gmail.com>2014-10-29 22:13:33 -0400
commit259c144eeb7b349a00891eb7bfa26ed564dfe580 (patch)
treed5620fc0ecba85da3f66d15ea0952eccfa718ebf /ocaml.html.markdown
parentfe277959606857f2690b4d6dd224fffc6a550d34 (diff)
parent7d0eaa855959c03b52795a7457001bbd69d88464 (diff)
Merge pull request #1 from adambard/master
Merge from upstream
Diffstat (limited to 'ocaml.html.markdown')
-rw-r--r--ocaml.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/ocaml.html.markdown b/ocaml.html.markdown
index b9505f13..f9db7080 100644
--- a/ocaml.html.markdown
+++ b/ocaml.html.markdown
@@ -93,7 +93,7 @@ let inc_int (x: int) : int = x + 1 ;;
(* You need to mark recursive function definitions as such with "rec" keyword. *)
let rec factorial n =
if n = 0 then 1
- else factorial n * factorial (n-1)
+ else n * factorial (n-1)
;;
(* Function application usually doesn't need parentheses around arguments *)