From 84ba2feda9243c8fedd7923614c3e6a48e5a8efc Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 27 Jun 2023 18:49:32 +0200 Subject: [PATCH] Refine method comments in humidity.go Comments for DateTime and Value methods in humidity.go file were updated to better describe their functionalities. This clarification should improve understandability for future maintenance/code reading. --- humidity.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/humidity.go b/humidity.go index 6dc1175..9dc167f 100644 --- a/humidity.go +++ b/humidity.go @@ -20,8 +20,8 @@ func (h Humidity) IsAvailable() bool { return !h.na } -// DateTime returns true if an Humidity value was -// available at time of query +// DateTime returns the timestamp of when the humidity +// measurement was taken. func (h Humidity) DateTime() time.Time { return h.dt } @@ -39,7 +39,7 @@ func (h Humidity) Source() Source { // Value returns the float64 value of an Humidity // If the Humidity is not available in the WeatherData -// Vaule will return math.NaN instead. +// Value will return math.NaN instead. func (h Humidity) Value() float64 { if h.na { return math.NaN()