Skip to content

Commit 14cbc56

Browse files
committed
Add mli version of the basic usage example
Signed-off-by: Nathan Rebours <[email protected]>
1 parent 373b3dd commit 14cbc56

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,17 @@ Let's look at how good OCaml is with integers and strings:
5353
- : string = "ab"
5454
```
5555
````
56+
or in an `mli` file:
57+
```ocaml
58+
(** Let's look at how good OCaml is with integers and strings:
59+
{@ocaml[
60+
# 1 + 2;;
61+
- : int = 2
62+
# "a" ^ "bc";;
63+
- : string = "ab"
64+
]}
65+
*)
66+
```
5667

5768
The content of the toplevel blocks looks just like an interactive toplevel
5869
session. Phrases, i.e., the toplevel "input", start with a `#` and end with `;;`.

0 commit comments

Comments
 (0)