Update from-into.md

rewording of the task to be less confusing
This commit is contained in:
Sergey Kaunov
2023-04-05 18:23:40 +03:00
committed by GitHub
parent de7523c35e
commit fdac246cfd

View File

@ -36,7 +36,8 @@ fn main() {
assert_eq!(i1, 0); assert_eq!(i1, 0);
// FIX the error in two ways // FIX the error in two ways
// 1. impl From<char> for ? , maybe you should check the docs mentiond above to find the answer /* 1. use a similar type which `impl From<char>`, maybe you
should check the docs mentiond above to find the answer */
// 2. a keyword from the last chapter // 2. a keyword from the last chapter
let i3: i32 = 'a'.into(); let i3: i32 = 'a'.into();
@ -170,4 +171,4 @@ fn main() {
} }
``` ```
> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/type-conversions/from-into.md)(under the solutions path), but only use it when you need it > You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/type-conversions/from-into.md)(under the solutions path), but only use it when you need it