From ec4ba00e40b3623ab83e0f5b7dd698ab8915593e Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Mon, 13 Jan 2025 11:49:48 -0500 Subject: [PATCH] chore: fix typos Signed-off-by: Rui Chen --- extras/CONFIG.md | 2 +- src/config.rs | 8 ++++---- src/main.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/extras/CONFIG.md b/extras/CONFIG.md index d09034d..8346890 100644 --- a/extras/CONFIG.md +++ b/extras/CONFIG.md @@ -182,7 +182,7 @@ refresh_time = 1000 # Display directories before files dirs_first = false show_hidden_by_default = false -# Whether to show special commads in a fuzzy style. Alternative is a list-like +# Whether to show special commands in a fuzzy style. Alternative is a list-like # view special_commands_fuzzy = true diff --git a/src/config.rs b/src/config.rs index 9ae6d7c..98ac48b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -60,7 +60,7 @@ where } /// Merge two structs against their default. As long as the right-hand merge is not the default, -/// it replaces the left-hande merge. +/// it replaces the left-hand merge. macro_rules! merge { ($first:expr, $second:expr; $($field:ident),+) => {{ let base = Self::default(); @@ -816,9 +816,9 @@ impl<'de> Deserialize<'de> for Modifier { where D: serde::Deserializer<'de>, { - struct ModifierVistor; + struct ModifierVisitor; - impl<'de> Visitor<'de> for ModifierVistor { + impl<'de> Visitor<'de> for ModifierVisitor { type Value = Modifier; fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result { @@ -841,7 +841,7 @@ impl<'de> Deserialize<'de> for Modifier { } } - deserializer.deserialize_seq(ModifierVistor) + deserializer.deserialize_seq(ModifierVisitor) } } diff --git a/src/main.rs b/src/main.rs index 9d078e4..1acfb47 100644 --- a/src/main.rs +++ b/src/main.rs @@ -112,7 +112,7 @@ fn main() -> Result<()> { shut_down(); } - let config = Rc::new(get_config().context("error gettting project root")?); + let config = Rc::new(get_config().context("error getting project root")?); log::set_logger(&EVENT_LOGGER) .map(|()| {