Update Examples
parent
06aa81ce06
commit
2777a59c2c
@ -626,10 +626,10 @@ fn main
|
|||||||
let x_cube = x_squared * x
|
let x_cube = x_squared * x
|
||||||
x_cube + x_squared + x
|
x_cube + x_squared + x
|
||||||
|
|
||||||
//! We encounter two important Husht points just below.
|
//! Here we encounter two important Husht points.
|
||||||
//! (1) Since there is only a single expression following the `let z=`
|
//! (1) Since there is only a single expression following the
|
||||||
//! without the `scope` keyword this would just amount to
|
//! `let z=`, without the `scope` keyword this would just
|
||||||
//! `let z = 2 * x`
|
//! amount to `let z = 2 * x`
|
||||||
//! (2) The final semicolon is allowed and preserved by Husht to
|
//! (2) The final semicolon is allowed and preserved by Husht to
|
||||||
//! suppress the return value from the scope, but returning
|
//! suppress the return value from the scope, but returning
|
||||||
//! the last expression from a scope is the default for Husht
|
//! the last expression from a scope is the default for Husht
|
||||||
|
Loading…
Reference in New Issue
Block a user