From c9d95300c22be8c6319d50d0e667dcec80e439b9 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 27 Jun 2023 18:57:33 +0200 Subject: [PATCH] Refine Precipitation's DateTime method comment The Precipitation's DateTime method comment was adjusted to better reflect its functionality. Instead of stating it returns true if the precipitation data was available at the time of the query or not, it was clarified that the method actually returns the DateTime when the Precipitation value was recorded. --- precipitation.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/precipitation.go b/precipitation.go index d91f4c7..45efda3 100644 --- a/precipitation.go +++ b/precipitation.go @@ -20,8 +20,7 @@ func (p Precipitation) IsAvailable() bool { return !p.na } -// DateTime returns true if an Precipitation value was -// available at time of query +// DateTime returns the DateTime when the Precipitation value was recorded func (p Precipitation) DateTime() time.Time { return p.dt }