Update from-into.md

Seems to be closer to the task.
This commit is contained in:
Sergey Kaunov
2023-04-05 18:20:26 +03:00
committed by GitHub
parent 31c6314cf9
commit de7523c35e

View File

@ -22,7 +22,7 @@ fn main() {
assert_eq!(i1, i2); assert_eq!(i1, i2);
assert_eq!(i1, 0); assert_eq!(i1, 0);
let i3: u32 = 'a' as u32 ; let i3: i32 = 'a' as i32 ;
let s: String = String::from('a'); let s: String = String::from('a');
} }
@ -141,4 +141,4 @@ fn main() {
let result: Result<EvenNum, ()> = 5i32.try_into(); let result: Result<EvenNum, ()> = 5i32.try_into();
assert_eq!(result, Err(())); assert_eq!(result, Err(()));
} }
``` ```