mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
Remove stray argument from the alternative matching syntax in OCaml tutorial.
It wouldn't cause a syntax error, but wouldn't give intended result either.
This commit is contained in:
parent
d9110cf7bc
commit
962d58d013
@ -297,7 +297,7 @@ let is_zero x =
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
(* Alternatively, you can use the "function" keyword. *)
|
(* Alternatively, you can use the "function" keyword. *)
|
||||||
let is_one x = function
|
let is_one = function
|
||||||
| 1 -> true
|
| 1 -> true
|
||||||
| _ -> false
|
| _ -> false
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user