Update Examples

Glen Whitney 2024-08-25 02:51:54 +00:00
parent a0afe7310f
commit 119b48fc7f

@ -606,7 +606,7 @@ fn main() {
};
let z = {
// The semicolon suppresses this expression and `()` is assigned to `z`
// Semicolon suppresses final value, so `z` gets `()`
2 * x;
};
@ -635,7 +635,7 @@ fn main
//! 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`
// Semicolon suppresses final value, so `z` gets `()`
2 * x;
println! "x is {:?}", x