From 5a17ae7316c92fd35b37714429e0d0d802b8d9a9 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Tue, 13 Jun 2023 21:47:58 +0800 Subject: [PATCH] fix typos Found via `typos --format brief` --- CHANGELOG.md | 4 ++-- src/config/wizard.rs | 2 +- src/domain/account/handlers.rs | 8 ++++---- src/ui/table/table.rs | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d27ef9f..e077a6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,7 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Changed release archive extensions from `.tar.gz` to `.tgz`. - Moved `wizard` module into domains (config, account, backend…). - [**BREAKING**] Changed the way secrets are managed. A secret is a sensitive data like passwords or tokens. There is 3 possible ways to declare a secret in the config file: - - `{ raw = }` for the raw secret as string (unsafe, not recommanded), + - `{ raw = }` for the raw secret as string (unsafe, not recommended), - `{ cmd = }` for command that exposes the secret, - `{ keyring = }` for entry in your system's global keyring that contains the secret. @@ -163,7 +163,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Separated the CLI from the lib module [#340]. - The source code has been splitted into subrepositories: + The source code has been split into subrepositories: - The email logic has been extracted from the CLI and placed in a lib on [sourcehut](https://git.sr.ht/~soywod/himalaya-lib) - The vim plugin is now in a dedicated repository on [sourcehut](https://git.sr.ht/~soywod/himalaya-vim) as well diff --git a/src/config/wizard.rs b/src/config/wizard.rs index 200627e..7868ce7 100644 --- a/src/config/wizard.rs +++ b/src/config/wizard.rs @@ -52,7 +52,7 @@ pub(crate) fn configure() -> Result { wizard_log!("Configuring another account:"); } - // If one acounts is setup, make it the default. If multiple + // If one account is setup, make it the default. If multiple // accounts are setup, decide which will be the default. If no // accounts are setup, exit the process. let default_account = match config.accounts.len() { diff --git a/src/domain/account/handlers.rs b/src/domain/account/handlers.rs index e4dc93b..e575c17 100644 --- a/src/domain/account/handlers.rs +++ b/src/domain/account/handlers.rs @@ -232,7 +232,7 @@ pub fn sync<'a, P: Printer>( .collect::>(); if !folders_patch_err.is_empty() { printer.print_log("")?; - printer.print_log("Errors occured while applying the folders patch:")?; + printer.print_log("Errors occurred while applying the folders patch:")?; folders_patch_err .iter() .try_for_each(|(hunk, err)| printer.print_log(format!(" - {hunk}: {err}")))?; @@ -241,7 +241,7 @@ pub fn sync<'a, P: Printer>( if let Some(err) = report.folders_cache_patch.1 { printer.print_log("")?; printer.print_log(format!( - "Error occured while applying the folder cache patch: {err}" + "Error occurred while applying the folder cache patch: {err}" ))?; } @@ -252,7 +252,7 @@ pub fn sync<'a, P: Printer>( .collect::>(); if !envelopes_patch_err.is_empty() { printer.print_log("")?; - printer.print_log("Errors occured while applying the envelopes patch:")?; + printer.print_log("Errors occurred while applying the envelopes patch:")?; for (hunk, err) in folders_patch_err { printer.print_log(format!(" - {hunk}: {err}"))?; } @@ -261,7 +261,7 @@ pub fn sync<'a, P: Printer>( if let Some(err) = report.envelopes_cache_patch.1 { printer.print_log("")?; printer.print_log(format!( - "Error occured while applying the envelopes cache patch: {err}" + "Error occurred while applying the envelopes cache patch: {err}" ))?; } diff --git a/src/ui/table/table.rs b/src/ui/table/table.rs index 6e4343d..8864db9 100644 --- a/src/ui/table/table.rs +++ b/src/ui/table/table.rs @@ -18,7 +18,7 @@ use crate::printer::{Print, PrintTableOpts, WriteColor}; /// TODO: make this customizable. pub const DEFAULT_TERM_WIDTH: usize = 80; -/// Defines the minimum size of a shrinked cell. +/// Defines the minimum size of a shrunk cell. /// TODO: make this customizable. pub const MAX_SHRINK_WIDTH: usize = 5; @@ -237,9 +237,9 @@ where value.push_str("… "); trace!("chars width: {}", chars_width); - trace!("shrinked value: {}", value); + trace!("shrunk value: {}", value); let spaces_count = cell_width - chars_width - 1; - trace!("number of spaces added to shrinked value: {}", spaces_count); + trace!("number of spaces added to shrunk value: {}", spaces_count); value.push_str(&" ".repeat(spaces_count)); cell.value = value; } else {