We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3c9666 commit 0d1927eCopy full SHA for 0d1927e
data/tutorials/lg_03_modules.md
@@ -118,15 +118,12 @@ let hello () = print_endline "Hello"
118
119
As it is, `Amodule` has the following interface:
120
121
+<!-- $MDX skip -->
122
```ocaml
123
val message : string
124
125
val hello : unit -> unit
126
```
-```mdx-error
127
-Line 1, characters 1-21:
128
-Error: Value declarations are only allowed in signatures
129
-```
130
131
Let's assume that accessing the `message` value directly is none of the others
132
modules' business. We want to hide it by defining a restricted interface. This
0 commit comments