mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-11 13:19:18 +00:00
fix function name
This commit is contained in:
parent
75b09dd69a
commit
2c38a9fa55
@ -54,7 +54,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…
x
Reference in New Issue
Block a user