Skip to content

Commit 0d1927e

Browse files
Modules Tutorial Page Has Extra Error Code Block fix (ocaml#517)
1 parent f3c9666 commit 0d1927e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

data/tutorials/lg_03_modules.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,12 @@ let hello () = print_endline "Hello"
118118

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

121+
<!-- $MDX skip -->
121122
```ocaml
122123
val message : string
123124
124125
val hello : unit -> unit
125126
```
126-
```mdx-error
127-
Line 1, characters 1-21:
128-
Error: Value declarations are only allowed in signatures
129-
```
130127

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

0 commit comments

Comments
 (0)