diff --git a/examples/mode_01.rs b/examples/mode_01.rs index 18a9dae..39031c4 100644 --- a/examples/mode_01.rs +++ b/examples/mode_01.rs @@ -38,7 +38,7 @@ impl Interpret for State { Color::new_g(tail.head()?, try_to_u8) }, Some("rgb") if let Some(tail) = expr.tail()? => { - Color::new_rgb(tail.head()?) + Color::new_rgb(tail.head()?, try_to_u8) }, _ => Err(format!("not a color").into()) }