From 280a8b6fc19f65018371b904b7ac8001cfdc6ad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Pirkl?= <theo.pirkl@hesge.ch> Date: Thu, 10 Aug 2023 21:46:12 +0200 Subject: [PATCH] Typos et suggestions de corrections --- book/src/part00.md | 2 +- book/src/part04.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/book/src/part00.md b/book/src/part00.md index d7ad8a4..37bf485 100644 --- a/book/src/part00.md +++ b/book/src/part00.md @@ -40,7 +40,7 @@ et l'initialisons avec la valeur du 1er élément de `tab` (ici la valeur est `1 ### Structures de contrôle -Nous avons deux `if` dans ce code. Dans le premier +Voici deux extraits de code. Dans le premier ```rust,should_panic const SIZE: usize = 0; if SIZE == 0 { diff --git a/book/src/part04.md b/book/src/part04.md index e9184b7..127f0c2 100644 --- a/book/src/part04.md +++ b/book/src/part04.md @@ -44,7 +44,8 @@ Ainsi, quand on fait let a = SomethingOrNothing::new(1); let _b = a; ``` -on donne la propriété de la valeur `SomethingOrNothing::new(1)` à la variable `a`. Puis, quand transfère la propriété de la valeur +on donne la propriété de la valeur `SomethingOrNothing::new(1)` à la variable `a`. Puis, quand +on transfère la propriété de la valeur `SomethingOrNothing::new(1)` à la variable `_b`. Ainsi, `a` n'est plus lié à `SomethingOrNothing::new(1)` et ne peut plus rien transférer comme données. Donc quand on fait -- GitLab