Re: [rust-dev] Bug in the guide?

2014-09-17 Thread Tim Joseph Dumol
Hi Pablo, You can submit a pull request at the Rust Github repo ( https://github.com/rust-lang/rust). The relevant file is at `/src/doc/ guide.md`: https://github.com/rust-lang/rust/blob/master/src/doc/guide.md. Cheers, Tim Dumol On Thu, Sep 18, 2014 at 3:55 AM, Steve Klabnik wrote: > Yup, th

Re: [rust-dev] json read_str crashes

2014-09-18 Thread Tim Joseph Dumol
Hi Daneel, Your `read_str` function tried to unwrap an `Option` that turned out to be `None`, which caused your error. You'll want to `match` on the that `Option` instead and handle for the case when it's a `None`. Good luck! Cheers, Tim Joseph Dumol On Thu, Sep 18, 2014 at 11:44

Re: [rust-dev] json read_str crashes

2014-09-18 Thread Tim Joseph Dumol
/build/src/libserialize/json.rs.html#1916), which causes the subsequent read_str() to fail. You can double-check this by removing the `read_int()` call, after which the `read_str()` works. Cheers, Tim Joseph Dumol On Fri, Sep 19, 2014 at 12:40 AM, Tim Joseph Dumol wrote: > Whoops, my bad