mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
9c7c232a50
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.