feat(try_from_into): add hint comments

This commit is contained in:
mokou 2022-07-15 12:49:49 +02:00
parent 74f44f55e3
commit 81d25aecff

View File

@ -3,7 +3,7 @@
// Basically, this is the same as From. The main difference is that this should return a Result type // Basically, this is the same as From. The main difference is that this should return a Result type
// instead of the target type itself. // instead of the target type itself.
// You can read more about it at https://doc.rust-lang.org/std/convert/trait.TryFrom.html // You can read more about it at https://doc.rust-lang.org/std/convert/trait.TryFrom.html
// Execute `rustlings hint from_str` or use the `hint` watch subcommand for a hint. // Execute `rustlings hint try_from_into` or use the `hint` watch subcommand for a hint.
use std::convert::{TryFrom, TryInto}; use std::convert::{TryFrom, TryInto};