add missing try_to_u8 in example

This commit is contained in:
facile pop culture reference 2026-07-30 14:51:25 +03:00
parent d9d6340503
commit 49dcb4f3ba

View file

@ -38,7 +38,7 @@ impl Interpret<Tui, Color> for State {
Color::new_g(tail.head()?, try_to_u8) Color::new_g(tail.head()?, try_to_u8)
}, },
Some("rgb") if let Some(tail) = expr.tail()? => { 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()) _ => Err(format!("not a color").into())
} }