From e3756a5466c6bb8ed039b9d6f1d80bc601c71198 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 27 Jun 2023 19:01:37 +0200 Subject: [PATCH] Update comment for DateTime function in radiation.go The comment for the DateTime function in radiation.go was updated to more accurately describe its functionality. The previous version of the comment suggested that the function returns a boolean value indicating the availability of a radiation value at the time of a query. However, the function actually returns a time.Time object representing the date and time of the query. The comment was thus updated to reflect this. --- radiation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radiation.go b/radiation.go index 1959df3..49ce00f 100644 --- a/radiation.go +++ b/radiation.go @@ -20,8 +20,8 @@ func (r Radiation) IsAvailable() bool { return !r.na } -// DateTime returns true if an Radiation value was -// available at time of query +// DateTime returns the time.Time object representing the date and time +// at which the Radiation value was queried func (r Radiation) DateTime() time.Time { return r.dt }