On Sat, May 18, 2013 at 11:57 AM, Corey Richardson <[email protected]> wrote: > ``` > match int::from_str(line) { > Some(x) => n1 = x, > None => { /* handle error... */} > } > if n1 == 0 { > ... > ```
Amend that to:
let n1;
match int::from_str(line) {
Some(x) => n1 = x,
None => { /* handle error... */}
}
if n1 == 0 {
...
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev
