From a0afe7310f808997c50798a3e60f135a844d0e24 Mon Sep 17 00:00:00 2001 From: Glen Whitney Date: Sun, 25 Aug 2024 02:49:46 +0000 Subject: [PATCH] Update Examples --- Examples.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Examples.md b/Examples.md index 108282d..3d2f3c6 100644 --- a/Examples.md +++ b/Examples.md @@ -629,10 +629,11 @@ fn main //! Here we encounter two important Husht points. //! (1) Since there is only a single expression //! following the `let z=`, without the `scope` - //! keyword this would just amount to `let z = 2 * x` - //! (2) The final semicolon is allowed and preserved by Husht to - //! suppress the return value from the scope, but returning - //! the last expression from a scope is the default for Husht + //! keyword this would merely be `let z = 2 * x` + //! (2) The final semicolon is allowed and preserved + //! by Husht to suppress the return value from + //! the scope, but returning the last expression + //! from a scope is the default for Husht let z = scope // The semicolon suppresses this expression and `()` is assigned to `z` 2 * x;