diff options
author | Daniil Baturin <daniil@baturin.org> | 2014-09-12 19:35:56 +0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2014-09-12 19:35:56 +0700 |
commit | 962d58d013fa245c6b61863d2d14420c4c563743 (patch) | |
tree | 7f337b0070383fb3d2e86da3d42cc225ac2ae176 /ocaml.html.markdown | |
parent | d9110cf7bc8a3dcf84207ea509340dbae868a44a (diff) |
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.
Diffstat (limited to 'ocaml.html.markdown')
-rw-r--r-- | ocaml.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ocaml.html.markdown b/ocaml.html.markdown index fd5b9b2e..1732f7be 100644 --- a/ocaml.html.markdown +++ b/ocaml.html.markdown @@ -297,7 +297,7 @@ let is_zero x = ;; (* Alternatively, you can use the "function" keyword. *) -let is_one x = function +let is_one = function | 1 -> true | _ -> false ;; |