mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 16:45:58 +00:00
The `from_str` implementation from the example had an `unwrap` that would make it panic on invalid input strings. Instead of panicking, it nows returns an error to better reflect the intented behavior of the `FromStr` trait.