From 17b8bbb908a73b7466648c26f2ab77d6cc7176a6 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Thu, 27 Feb 2020 23:06:04 +0000 Subject: Remove docs for 0xRRGGBB color notation --- alacritty_terminal/src/term/color.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alacritty_terminal/src') diff --git a/alacritty_terminal/src/term/color.rs b/alacritty_terminal/src/term/color.rs index e9f0a26d..f3f42e92 100644 --- a/alacritty_terminal/src/term/color.rs +++ b/alacritty_terminal/src/term/color.rs @@ -61,7 +61,7 @@ impl<'de> Deserialize<'de> for Rgb { type Value = Rgb; fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str("hex color like 0xff00ff") + f.write_str("hex color like #ff00ff") } fn visit_str(self, value: &str) -> ::std::result::Result @@ -69,7 +69,7 @@ impl<'de> Deserialize<'de> for Rgb { E: ::serde::de::Error, { Rgb::from_str(&value[..]) - .map_err(|_| E::custom("failed to parse rgb; expected hex color like 0xff00ff")) + .map_err(|_| E::custom("failed to parse rgb; expected hex color like #ff00ff")) } } -- cgit