diff --git a/data/tutorials/lg_03_modules.md b/data/tutorials/lg_03_modules.md index 7be9fbffb8..448f933243 100644 --- a/data/tutorials/lg_03_modules.md +++ b/data/tutorials/lg_03_modules.md @@ -118,15 +118,12 @@ let hello () = print_endline "Hello" As it is, `Amodule` has the following interface: + ```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