summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2014-09-10 17:35:30 +0200
committerAdam Bard <github@adambard.com>2014-09-10 17:35:30 +0200
commit146e6a4ac13f0ff6353879e7b42dfaa2a6725011 (patch)
tree2c163346849e8b153481888da32da2c45381a9b6
parentf3655d0fabf732c3b8718becf26aa2ebe85c910d (diff)
Update ocaml.html.markdown
-rw-r--r--ocaml.html.markdown4
1 files changed, 3 insertions, 1 deletions
diff --git a/ocaml.html.markdown b/ocaml.html.markdown
index fd7ca36e..3dbf5a10 100644
--- a/ocaml.html.markdown
+++ b/ocaml.html.markdown
@@ -1,5 +1,5 @@
---
-language: "OCaml"
+language: OCaml
contributors:
- ["Daniil Baturin", "http://baturin.org/"]
---
@@ -20,6 +20,7 @@ source of confusion for beginners.
When you are in the top level loop, OCaml will print the inferred type
after you enter an expression.
+
```
# let inc x = x + 1 ;;
val inc : int -> int = <fun>
@@ -42,6 +43,7 @@ val inc : int -> int
val add : int -> int -> int
val a : int
```
+
Note that type signatures of functions of multiple arguments are
written in curried form.