fix: correct spelling across docs, comments, and configs (#1891)

This commit is contained in:
rezky_nightky authored and GitHub committed 2025-11-30 16:42:06 -05:00
1 parent 1aaea6d71b
commit f277dff2b2
7 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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,
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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 {