mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Fix typo
This commit is contained in:
parent
3e429e86b2
commit
95bb627df8
@ -104,7 +104,7 @@ let fact_4 = factorial (5-1) ;;
|
|||||||
let sqr2 = sqr (-2) ;;
|
let sqr2 = sqr (-2) ;;
|
||||||
|
|
||||||
(* Every function must have at least one argument.
|
(* Every function must have at least one argument.
|
||||||
Since some funcions naturally don't take any arguments, there's
|
Since some functions naturally don't take any arguments, there's
|
||||||
"unit" type for it that has the only one value written as "()" *)
|
"unit" type for it that has the only one value written as "()" *)
|
||||||
let print_hello () = print_endline "hello world" ;;
|
let print_hello () = print_endline "hello world" ;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user