mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-26 00:00:03 +03:00
fix(try_from_into): fix function name
This commit is contained in:
parent
1ef8dacaf6
commit
9b66b2a0e9
|
@ -56,7 +56,7 @@ impl TryFrom<&[i16]> for Color {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
// Use the `from` function
|
||||
// Use the `try_from` function
|
||||
let c1 = Color::try_from((183, 65, 14));
|
||||
println!("{:?}", c1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue