fix function name

This commit is contained in:
Rod Elias 2022-05-13 20:18:36 -03:00 committed by GitHub
parent 75b09dd69a
commit 2c38a9fa55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);