From f277dff2b22f4b1bda3ff3ad2fca8cb41226b6a7 Mon Sep 17 00:00:00 2001 From: rezky_nightky <130107241+oxyzenQ@users.noreply.github.com> Date: Mon, 1 Dec 2025 04:42:06 +0700 Subject: [PATCH] fix: correct spelling across docs, comments, and configs (#1891) --- CONTRIBUTING.md | 2 +- docs/content/contribution/packaging-and-distribution.md | 2 +- src/app/data/temperature.rs | 2 +- src/collection.rs | 2 +- src/collection/disks/windows/bindings.rs | 4 ++-- src/collection/linux/utils.rs | 2 +- tests/valid_configs/styling_2.toml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1d8bd7b3..4d5d7927 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,7 @@ Contribution in any way is appreciated, whether it is reporting problems, fixing ### Bug reports -When filing a bug report, fill out the [bug report template](https://github.com/ClementTsang/bottom/issues/new?assignees=&labels=bug&template=bug_report.yml). Be sure to give all the neccessary details! It is _incredibly_ difficult for a maintainer to fix a bug when it cannot be reproduced, +When filing a bug report, fill out the [bug report template](https://github.com/ClementTsang/bottom/issues/new?assignees=&labels=bug&template=bug_report.yml). Be sure to give all the necessary details! It is _incredibly_ difficult for a maintainer to fix a bug when it cannot be reproduced, so that makes it much easier to reproduce the problem! ### Feature requests diff --git a/docs/content/contribution/packaging-and-distribution.md b/docs/content/contribution/packaging-and-distribution.md index 0107465b..6af294fc 100644 --- a/docs/content/contribution/packaging-and-distribution.md +++ b/docs/content/contribution/packaging-and-distribution.md @@ -54,7 +54,7 @@ This will automatically generate completion and manpage files in `target/tmp/bot files, modify/delete either these files or set `BTM_GENERATE` to some other non-empty value to retrigger the build script. -You may override the default diretories used to generate both completion and manpage files by specifying the +You may override the default directories used to generate both completion and manpage files by specifying the `COMPLETION_DIR` and `MANPAGE_DIR` environment variables respectively. For more information, you may want to look at either the [`build.rs`](https://github.com/ClementTsang/bottom/blob/main/build.rs) diff --git a/src/app/data/temperature.rs b/src/app/data/temperature.rs index 6647eec9..2b3f0df6 100644 --- a/src/app/data/temperature.rs +++ b/src/app/data/temperature.rs @@ -26,7 +26,7 @@ impl FromStr for TemperatureType { } impl TemperatureType { - /// Given a temperature in Celsius, covert it if necessary for a different + /// Given a temperature in Celsius, convert it if necessary for a different /// unit. pub fn convert_temp_unit(&self, celsius: f32) -> TypedTemperature { match self { diff --git a/src/collection.rs b/src/collection.rs index 52fc2fc2..9a4ed2d1 100644 --- a/src/collection.rs +++ b/src/collection.rs @@ -35,7 +35,7 @@ use starship_battery::{Battery, Manager}; use super::DataFilters; use crate::app::layout_manager::UsedWidgets; -// TODO: We can possibly re-use an internal buffer for this to reduce allocs. +// TODO: We can possibly reuse an internal buffer for this to reduce allocs. #[derive(Clone, Debug)] pub struct Data { pub collection_time: Instant, diff --git a/src/collection/disks/windows/bindings.rs b/src/collection/disks/windows/bindings.rs index 0c997d1c..5ec9c136 100644 --- a/src/collection/disks/windows/bindings.rs +++ b/src/collection/disks/windows/bindings.rs @@ -138,7 +138,7 @@ pub(crate) fn all_volume_io() -> anyhow::Result { - // Some error occured. + // Some error occurred. close_find_handle(handle)?; bail!("Error while iterating over volumes: {err:?}"); } @@ -151,7 +151,7 @@ pub(crate) fn all_volume_io() -> anyhow::Result anyhow::Result { - // According to winapi docs 50 is a reasonable length to accomodate the volume + // According to winapi docs 50 is a reasonable length to accommodate the volume // path https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getvolumenameforvolumemountpointw const VOLUME_MAX_LEN: usize = 50; diff --git a/src/collection/linux/utils.rs b/src/collection/linux/utils.rs index ff148a6f..215469b1 100644 --- a/src/collection/linux/utils.rs +++ b/src/collection/linux/utils.rs @@ -18,7 +18,7 @@ pub fn is_device_awake(device: &Path) -> bool { // check to fail and temperatures to appear as zero instead of // having the file not exist. // - // Their self-hosted git instance has disabled sign up, so this bug cant be + // Their self-hosted git instance has disabled sign up, so this bug can't be // reported either. state == "D0" || state == "unknown" } else { diff --git a/tests/valid_configs/styling_2.toml b/tests/valid_configs/styling_2.toml index f4c1d56d..b2c069d6 100644 --- a/tests/valid_configs/styling_2.toml +++ b/tests/valid_configs/styling_2.toml @@ -11,7 +11,7 @@ # - "nord-light". # This will have the lowest precedence if a custom colour palette is set, -# or overriden if the command-line flag for a built-in theme is set. +# or overridden if the command-line flag for a built-in theme is set. theme = "default" [styles.cpu]