misc: fix typos (#220)

Found via `typos --format brief`
This commit is contained in:
Kian-Meng Ang 2024-02-28 18:56:18 +08:00 committed by GitHub
parent cd1ec2f9f0
commit f7584ef672
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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))
}
}

View File

@ -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
@ -299,7 +299,7 @@ impl ImageFormatter {
self.code_pad,
self.get_line_y(i),
FontStyle::REGULAR,
&line_mumber,
&line_number,
);
}
}