Skip to content

Commit 5c07ec2

Browse files
authored
Fix typo in meta-programming tutorial (#3182)
* Fix a few typos in data/tutorials/wf_03_metaprogramming.md * Fix typo in meta-programming tutorial
1 parent 6a48b46 commit 5c07ec2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data/tutorials/language/4ad_00_metaprogramming.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Printf.printf "This program has been compiled by user: %s" "JohnDoe"
3131

3232
With this modification, the preprocessor will replace [%get_env "USER"] with the content of the USER environment variable during compile time, and this code should work on most systems without any additional configuration. At compile time, the preprocessor would replace [%get_env "USER"] by a string with the content of the USER environment variable, which usually contains the username of the person compiling the program. This happens at compile time, so at runtime, the value of the USER variable would have no effect, as it's used purely for informational purposes in the compiled program.
3333

34-
In this guide, we explain the different mechanism behind preprocessors in OCaml,
35-
with as few prerequisite as possible. If you are only interested in how to use a
34+
In this guide, we explain the different mechanisms behind preprocessors in OCaml,
35+
with as few prerequisites as possible. If you are only interested in how to use a
3636
PPX in your project, jump to [this section](#using-ppxs) or to the [dune
3737
doc](https://dune.readthedocs.io/en/stable/reference/preprocessing-spec.html).
3838
If you are interested in writing a PPX, jump to [this section](#writing-a-ppx).
@@ -41,7 +41,7 @@ If you are interested in writing a PPX, jump to [this section](#writing-a-ppx).
4141

4242
Some languages have built-in support for preprocessing, in the sense that a
4343
small part of the language is dedicated to being executed at compile time. This
44-
is the case for instance of C, where the C preprocessor syntax and semantic is
44+
is the case for instance of C, where the C preprocessor syntax and semantics is
4545
part of the language; and Rust with its macro system.
4646

4747
In OCaml, there is no macro system part of the language, all preprocessors are

0 commit comments

Comments
 (0)