Skip to content
Snippets Groups Projects
Commit 0295dc83 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

ajouts mineurs controle

parent 1b7ebc83
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -17,9 +17,13 @@ sansfont: Sans Serif ...@@ -17,9 +17,13 @@ sansfont: Sans Serif
- La syntaxe est: - La syntaxe est:
```if condition { ~~~{.lang-rust}
if condition {
// exécute ce bloc // exécute ce bloc
}```{.rust} }
~~~
- Exemple:
<pre><code data-trim="hljs rust" class="lang-rust"> <pre><code data-trim="hljs rust" class="lang-rust">
fn main() { fn main() {
...@@ -31,4 +35,5 @@ sansfont: Sans Serif ...@@ -31,4 +35,5 @@ sansfont: Sans Serif
} }
</code></pre> </code></pre>
## Le `if ... else`{.rust}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment