Skip to content

Commit

Permalink
Fix escape in "Your First OCaml Program" (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
J3RN committed Dec 12, 2023
1 parent 1fbff90 commit 4f0c38c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -119,7 +119,7 @@ Let's summarise what was said about modules in the ["Tour of OCaml"](/docs/tour-

Modules aid in organising projects; concerns can be separated into isolated modules. This is outlined in the next section. Before creating a module ourselves, we'll demonstrate using a definition from a module of the standard library. Change the content of the file `bin/main.ml` to this:
```ocaml
let () = Printf.printf "%s!\\n" "Hello, World!"
let () = Printf.printf "%s!\n" "Hello, World!"
```

This replaces the function `print_endline` with the function `printf` from the `Printf` module in the standard library. Building and executing this modified version should produce almost the same output as before. Use `dune exec hello` to try it for yourself.
Expand Down

0 comments on commit 4f0c38c

Please sign in to comment.