mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-05-03 13:30:44 +00:00
fix: correct spelling across docs, comments, and configs (#1891)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
@@ -138,7 +138,7 @@ pub(crate) fn all_volume_io() -> anyhow::Result<Vec<anyhow::Result<(DISK_PERFORM
|
||||
// Iteration completed successfully, continue on.
|
||||
}
|
||||
_ => {
|
||||
// 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<Vec<anyhow::Result<(DISK_PERFORM
|
||||
|
||||
/// Returns the volume name from a mount name if possible.
|
||||
pub(crate) fn volume_name_from_mount(mount: &str) -> anyhow::Result<String> {
|
||||
// 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;
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user