Update Examples

Glen Whitney 2024-08-25 02:49:46 +00:00
parent bb12486ca2
commit a0afe7310f

@ -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;