Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions data/tutorials/lg_03_modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,12 @@ let hello () = print_endline "Hello"

As it is, `Amodule` has the following interface:

<!-- $MDX skip -->
```ocaml
val message : string

val hello : unit -> unit
```
```mdx-error
Line 1, characters 1-21:
Error: Value declarations are only allowed in signatures
```

Let's assume that accessing the `message` value directly is none of the others
modules' business. We want to hide it by defining a restricted interface. This
Expand Down