Skip to content

Commit

Permalink
misc: fix typos (#220)
Browse files Browse the repository at this point in the history
Found via `typos --format brief`
  • Loading branch information
kianmeng authored Feb 28, 2024
1 parent cd1ec2f commit f7584ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bin/silicon/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl Config {
Ok(theme.clone())
} else {
ThemeSet::get_theme(&self.theme)
.context(format!("Canot load the theme: {}", self.theme))
.context(format!("Cannot load the theme: {}", self.theme))
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ impl ImageFormatter {
*i = (*i).saturating_sub(20);
}
for i in 0..=lineno {
let line_mumber = format!(
let line_number = format!(
"{:>width$}",
i + self.line_offset,
width = self.line_number_chars as usize
Expand All @@ -299,7 +299,7 @@ impl ImageFormatter {
self.code_pad,
self.get_line_y(i),
FontStyle::REGULAR,
&line_mumber,
&line_number,
);
}
}
Expand Down

0 comments on commit f7584ef

Please sign in to comment.