Skip to content

Commit

Permalink
Adjust Origin::Named doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Jan 15, 2019
1 parent bc64635 commit 25e9e4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/terminal/config/font.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub fn true_type<T: AsRef<Path>>(origin: Origin, path: T, tile_size: Size) -> Tr
pub enum Origin {
/// `font`
Root,
/// `named font`
/// `[name] font`
Named(Cow<'static, str>),
/// `0xNNNN`
Offset(char),
Expand Down Expand Up @@ -293,7 +293,7 @@ impl ConfigPart for TrueType {
impl fmt::Display for Origin {
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
match self {
&Origin::Root => formatter.write_str("font"),
&Origin::Root => formatter.write_str("[font]"),
&Origin::Named(ref n) => formatter.write_str(&*&format!("{} font", &n)),
&Origin::Offset(o) => formatter.write_str(&*&format!("0x{:X}", o as i32)),
}
Expand Down

0 comments on commit 25e9e4d

Please sign in to comment.