Skip to content

Commit

Permalink
Update 1_02_your_first_ocaml_program.md (#2712)
Browse files Browse the repository at this point in the history
changing `dune proj init` to `dune init proj`
  • Loading branch information
Durbatuluk1701 authored Sep 22, 2024
1 parent 4d6ff33 commit c27d459
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ $ opam exec -- dune exec hello

## A Sneak-Peek at Dune as a One-Stop Shop

This section explains the purpose of the files and directories created by `dune proj init` which haven't been mentioned earlier.
This section explains the purpose of the files and directories created by `dune init proj` which haven't been mentioned earlier.

Along the history of OCaml, several build systems have been used. As of writing this tutorial (Summer 2023), Dune is the mainstream one, which is why it is used in the tutorial. Dune automatically extracts the dependencies between the modules from the files and compiles them in a compatible order. It only needs one `dune` file per directory where there is something to build. The three directories created by `dune proj init` have the following purposes:
Along the history of OCaml, several build systems have been used. As of writing this tutorial (Summer 2023), Dune is the mainstream one, which is why it is used in the tutorial. Dune automatically extracts the dependencies between the modules from the files and compiles them in a compatible order. It only needs one `dune` file per directory where there is something to build. The three directories created by `dune init proj` have the following purposes:
- `bin`: executable programs
- `lib`: libraries
- `test`: tests
Expand Down

0 comments on commit c27d459

Please sign in to comment.