From 9b675554a520f98cfd654f6eefc03c4c9f37a002 Mon Sep 17 00:00:00 2001
From: Orestis Malaspinas <orestis.malaspinas@hesge.ch>
Date: Thu, 20 Sep 2018 08:07:34 +0200
Subject: [PATCH] exemple overflow

---
 types.md | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/types.md b/types.md
index a3480c8..467759d 100644
--- a/types.md
+++ b/types.md
@@ -108,9 +108,10 @@ fn main() {
 - **Attention**: En mode *release*, cela ne sera pas le cas.
     <pre><code data-trim="hljs rust" class="lang-rust">
 fn main() {
-    let x:i32 = 1234567891011; // en pratique cela produit un warning
+    let x:i32 = 12345678; 
+    let y:i32 = 12345678; 
 
-    println!("L'entier x vaut {}.", x); // affichage   
+    println!("L'entier x vaut {}.", x*y); // affichage   
 }
     </code></pre>
 
@@ -254,4 +255,4 @@ fn main() {
     - Le type `Vec`{.rust}
     - Le type `String`{.rust}
     - ... 
-    
\ No newline at end of file
+    
-- 
GitLab