On 9/16/11 2:40 PM, Patrick Walton wrote:
fn get_swap<T>(&mutable option<T> : opt) -> T {
let opt2 = none;
opt :=: opt2;
ret alt opt2 { none. { fail } some(x) { x } }
}
Sorry, this should read:
fn get_swap<T>(&mutable opt : option<T>) -> T {
let opt2 = none;
opt :=: opt2;
ret alt opt2 { none. { fail } some(x) { x } }
}
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev
