From a20cb66df874876d06b715858e808c7916619037 Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Sun, 25 Aug 2024 02:57:19 +0000 Subject: [PATCH] Update Examples --- Examples.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Examples.md b/Examples.md index 9b809b4..3f230ca 100644 --- a/Examples.md +++ b/Examples.md @@ -605,6 +605,8 @@ fn main() { x_cube + x_squared + x }; + + let z = { // Final semicolon discards value; `z` ← `()` 2 * x; @@ -641,7 +643,6 @@ fn main println! "x is {:?}", x println! "y is {:?}", y println! "z is {:?}", z -} ```