aboutsummaryrefslogtreecommitdiff
path: root/font/src/rusttype
diff options
context:
space:
mode:
authorNathan Lilienthal <nathan@nixpulvis.com>2019-01-06 19:06:57 -0500
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-01-07 00:06:57 +0000
commit04707cbba630e3e4ad6b4200bef8ae7888c49e3b (patch)
treebd04f4964d4c4ad67cd565b38172b488172acfcc /font/src/rusttype
parentdfc30eeef5eb6df9f658e62875e5cde93173e37b (diff)
downloadr-alacritty-04707cbba630e3e4ad6b4200bef8ae7888c49e3b.tar.gz
r-alacritty-04707cbba630e3e4ad6b4200bef8ae7888c49e3b.tar.bz2
r-alacritty-04707cbba630e3e4ad6b4200bef8ae7888c49e3b.zip
Normalize Log Message Strings
The general style for errors, warnings and info messages is to start with a capitalized letter and end without a period. The main exception is when dealing with nouns that are clearer with special case handling, e.g. "macOS failed to work" or "ioctl is borked".
Diffstat (limited to 'font/src/rusttype')
-rw-r--r--font/src/rusttype/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/font/src/rusttype/mod.rs b/font/src/rusttype/mod.rs
index bd4b8df1..add23605 100644
--- a/font/src/rusttype/mod.rs
+++ b/font/src/rusttype/mod.rs
@@ -166,10 +166,10 @@ pub enum Error {
impl ::std::error::Error for Error {
fn description(&self) -> &str {
match *self {
- Error::MissingFont(ref _desc) => "couldn't find the requested font",
- Error::UnsupportedFont => "only TrueType fonts are supported",
- Error::UnsupportedStyle => "the selected style is not supported by rusttype",
- Error::MissingGlyph => "the selected font did not have the requested glyph",
+ Error::MissingFont(ref _desc) => "Couldn't find the requested font",
+ Error::UnsupportedFont => "Only TrueType fonts are supported",
+ Error::UnsupportedStyle => "The selected style is not supported by rusttype",
+ Error::MissingGlyph => "The selected font does not have the requested glyph",
}
}
}