mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-08-15 06:46:57 +00:00
Fix conversions3 explanation
This commit is contained in:
parent
11ce37fc93
commit
7fc3088421
@ -1,7 +1,9 @@
|
|||||||
// In this exercise, we'll implement `FromStr` and return errors instead of
|
// In this exercise, we'll implement `FromStr` to convert data stored as a
|
||||||
// falling back to a default value. Additionally, upon implementing `FromStr`,
|
// string into a structured type. Unlike the `From` trait, the conversion
|
||||||
// you can use the `parse` method on strings to generate an object of the
|
// expressed by `FromStr` can fail, so it returns a `Result`. Additionally,
|
||||||
// implementor type. You can read more about it in the documentation:
|
// upon implementing `FromStr`, you can use the `parse` method on strings to
|
||||||
|
// generate an object of the implementor type. You can read more about it in
|
||||||
|
// the documentation:
|
||||||
// https://doc.rust-lang.org/std/str/trait.FromStr.html
|
// https://doc.rust-lang.org/std/str/trait.FromStr.html
|
||||||
|
|
||||||
use std::num::ParseIntError;
|
use std::num::ParseIntError;
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
// In this exercise, we'll implement `FromStr` and return errors instead of
|
// In this exercise, we'll implement `FromStr` to convert data stored as a
|
||||||
// falling back to a default value. Additionally, upon implementing `FromStr`,
|
// string into a structured type. Unlike the `From` trait, the conversion
|
||||||
// you can use the `parse` method on strings to generate an object of the
|
// expressed by `FromStr` can fail, so it returns a `Result`. Additionally,
|
||||||
// implementor type. You can read more about it in the documentation:
|
// upon implementing `FromStr`, you can use the `parse` method on strings to
|
||||||
|
// generate an object of the implementor type. You can read more about it in
|
||||||
|
// the documentation:
|
||||||
// https://doc.rust-lang.org/std/str/trait.FromStr.html
|
// https://doc.rust-lang.org/std/str/trait.FromStr.html
|
||||||
|
|
||||||
use std::num::ParseIntError;
|
use std::num::ParseIntError;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user