From 1453e1d5bb052ab8b86d651792e99f633ba10ea7 Mon Sep 17 00:00:00 2001 From: Charisee Chiw Date: Mon, 23 Jan 2023 18:37:03 -0800 Subject: [PATCH] Update blocks.md --- src/control-flow/blocks.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/control-flow/blocks.md b/src/control-flow/blocks.md index b86a3c40..f09f8bbf 100644 --- a/src/control-flow/blocks.md +++ b/src/control-flow/blocks.md @@ -36,3 +36,11 @@ fn main() { ``` However if the last expression ends with `;`, then the resulting value and type is `()`. + +
+ +Key Points: +* The point of this slide is to show that blocks have a type and value in Rust. +* You can show how the value of the block changes by changing the last line in the block. For instance, adding/removing a semicolon or using a `return`. + +