aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-02-27 23:06:04 +0000
committerGitHub <noreply@github.com>2020-02-27 23:06:04 +0000
commit17b8bbb908a73b7466648c26f2ab77d6cc7176a6 (patch)
treeb95be9889e45494ae3e8140fab9ce4b5bd1d57c3 /alacritty_terminal/src
parente3f095ca96c4e42ae0c86411dd92c3cb8d7a9072 (diff)
downloadalacritty-17b8bbb908a73b7466648c26f2ab77d6cc7176a6.tar.gz
alacritty-17b8bbb908a73b7466648c26f2ab77d6cc7176a6.zip
Remove docs for 0xRRGGBB color notation
Diffstat (limited to 'alacritty_terminal/src')
-rw-r--r--alacritty_terminal/src/term/color.rs4
1 files changed, 2 insertions, 2 deletions
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<E>(self, value: &str) -> ::std::result::Result<Rgb, E>
@@ -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"))
}
}