mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-06 10:03:30 +02:00
fix(try_from_into): fix function name
This commit is contained in:
committed by
mokou
co-authored by
mokou
parent
1ef8dacaf6
commit
9b66b2a0e9
@@ -56,7 +56,7 @@ impl TryFrom<&[i16]> for Color {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// Use the `from` function
|
// Use the `try_from` function
|
||||||
let c1 = Color::try_from((183, 65, 14));
|
let c1 = Color::try_from((183, 65, 14));
|
||||||
println!("{:?}", c1);
|
println!("{:?}", c1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user