Skip to content

Commit

Permalink
Spelling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cognoscan committed Jun 9, 2024
1 parent 53371b9 commit cfcf3c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions cspell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ words:
- execvp
- favg
- fcntl
- flurr
- fmax
- fmin
- getaddr
Expand Down
6 changes: 3 additions & 3 deletions src/blocks/weather/nws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl ApiForecast {
}
}

fn apparant_temp(&self) -> f64 {
fn apparent_temp(&self) -> f64 {
let temp = if self.temperature.unit_code.ends_with("degC") {
self.temperature.value
} else {
Expand All @@ -188,7 +188,7 @@ impl ApiForecast {
weather,
weather_verbose: self.short_forecast.clone(),
temp: self.temperature.value,
apparent: self.apparant_temp(),
apparent: self.apparent_temp(),
humidity: self.relative_humidity.value,
wind: self.wind_speed.value,
wind_kmh: self.wind_kmh(),
Expand All @@ -199,7 +199,7 @@ impl ApiForecast {
fn to_aggregate(&self) -> ForecastAggregate {
ForecastAggregate {
temp: self.temperature.value,
apparent: self.apparant_temp(),
apparent: self.apparent_temp(),
humidity: self.relative_humidity.value,
wind: self.wind_speed.value,
wind_kmh: self.wind_kmh(),
Expand Down

0 comments on commit cfcf3c6

Please sign in to comment.