Update Examples
parent
119b48fc7f
commit
eb60685350
1 changed files with 2 additions and 2 deletions
|
@ -606,7 +606,7 @@ fn main() {
|
||||||
};
|
};
|
||||||
|
|
||||||
let z = {
|
let z = {
|
||||||
// Semicolon suppresses final value, so `z` gets `()`
|
// Semicolon discards final value, so `z` gets `()`
|
||||||
2 * x;
|
2 * x;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -635,7 +635,7 @@ fn main
|
||||||
//! the scope, but returning the last expression
|
//! the scope, but returning the last expression
|
||||||
//! from a scope is the default for Husht
|
//! from a scope is the default for Husht
|
||||||
let z = scope
|
let z = scope
|
||||||
// Semicolon suppresses final value, so `z` gets `()`
|
// Semicolon discards final value, so `z` gets `()`
|
||||||
2 * x;
|
2 * x;
|
||||||
|
|
||||||
println! "x is {:?}", x
|
println! "x is {:?}", x
|
||||||
|
|
Loading…
Add table
Reference in a new issue