mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
[ocaml/en] Fix typo
This commit is contained in:
parent
8c70acc9fb
commit
ea5c3c1f3e
@ -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 ***)
|
||||
|
Loading…
Reference in New Issue
Block a user