From abd200177fe5a5ffa2b09451cf3dce089bc4032a Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 27 Jun 2023 19:25:19 +0200 Subject: [PATCH] Update DateTime comment for clarity The comment explaining the function DateTime in temperature.go was modified. The original comment was inaccurate, suggesting it returned boolean when in fact it returns the exact time the temperature data was obtained. The comment was updated to accurately reflect what the function does. --- temperature.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/temperature.go b/temperature.go index 07a48c7..357fd25 100644 --- a/temperature.go +++ b/temperature.go @@ -20,8 +20,8 @@ func (t Temperature) IsAvailable() bool { return !t.na } -// DateTime returns true if an Temperature value was -// available at time of query +// DateTime returns the time at which the temperature data was +// generated or fetched func (t Temperature) DateTime() time.Time { return t.dt }