diff --git a/control.md b/control.md index e830eba82f0bd52ab1459bcd943dece4d749c405..38e5d031549c5794eaf56bb367724afa1e0f3b85 100644 --- a/control.md +++ b/control.md @@ -17,9 +17,13 @@ sansfont: Sans Serif - La syntaxe est: - ```if condition { + ~~~{.lang-rust} + if condition { // exécute ce bloc - }```{.rust} + } + ~~~ + +- Exemple: <pre><code data-trim="hljs rust" class="lang-rust"> fn main() { @@ -31,4 +35,5 @@ sansfont: Sans Serif } </code></pre> +## Le `if ... else`{.rust}