Update Examples
parent
1ef810f375
commit
a20cb66df8
@ -605,6 +605,8 @@ fn main() {
|
||||
x_cube + x_squared + x
|
||||
};
|
||||
|
||||
|
||||
|
||||
let z = {
|
||||
// Final semicolon discards value; `z` ← `()`
|
||||
2 * x;
|
||||
@ -641,7 +643,6 @@ fn main
|
||||
println! "x is {:?}", x
|
||||
println! "y is {:?}", y
|
||||
println! "z is {:?}", z
|
||||
}
|
||||
```
|
||||
</td></tr></table>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user