Skip to content

Commit

Permalink
Fix preprocess.sh example (#2705)
Browse files Browse the repository at this point in the history
Co-authored-by: Cuihtlauac ALVARADO <[email protected]>
  • Loading branch information
cuihtlauac and Cuihtlauac ALVARADO authored Sep 19, 2024
1 parent 42eb295 commit 1bae654
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/tutorials/language/4ad_00_metaprogramming.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ would alter the compilation:
$ cat hello.ml
print_endline "Hello, World!";;

$ ocamlopt -pp preprocessor.sh hello.ml
$ ocamlopt -pp ./preprocessor.sh hello.ml
$ ./a.out
Hello, Universe!
```
Expand All @@ -131,10 +131,10 @@ module files using our previously written `preprocessor.sh`:

```dune
(executable
(name main)
(name hello)
(preprocess
(action
(system "./preprocessor.sh %{input-file}"))))
(run ./preprocessor.sh %{input-file}))))
```

### The Limits of Manipulating Text Files
Expand Down

0 comments on commit 1bae654

Please sign in to comment.