summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChenggang Duan <cgduan@live.com>2015-02-12 17:02:16 +0800
committerChenggang Duan <cgduan@live.com>2015-02-12 17:02:16 +0800
commitea5c3c1f3efd4da9d47a7e108e0c1b92ee6dfeb6 (patch)
treefcec6836cad29ce179a5b687a28051acd31ae36c
parent8c70acc9fb102e5884fb9e05c79e07015c3e4188 (diff)
[ocaml/en] Fix typo
-rw-r--r--ocaml.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/ocaml.html.markdown b/ocaml.html.markdown
index b30d920b..b0027fea 100644
--- a/ocaml.html.markdown
+++ b/ocaml.html.markdown
@@ -293,7 +293,7 @@ type int_list_list = int list_of_lists ;;
(* Types can also be recursive. Like in this type analogous to
built-in list of integers. *)
type my_int_list = EmptyList | IntList of int * my_int_list ;;
-let l = Cons (1, EmptyList) ;;
+let l = IntList (1, EmptyList) ;;
(*** Pattern matching ***)