Update Examples
parent
eb60685350
commit
bdfa3c25c9
@ -606,7 +606,7 @@ fn main() {
|
||||
};
|
||||
|
||||
let z = {
|
||||
// Semicolon discards final value, so `z` gets `()`
|
||||
// Final semicolon discards value; `z` ← `()`
|
||||
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
|
||||
// Semicolon discards final value, so `z` gets `()`
|
||||
// Final semicolon discards value; `z` ← `()
|
||||
2 * x;
|
||||
|
||||
println! "x is {:?}", x
|
||||
|
Loading…
Reference in New Issue
Block a user