From 513d7b863f5128f43f4de38257f40c69d231f9a7 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 27 Jun 2023 18:59:13 +0200 Subject: [PATCH] Refine DateTime function description in pressure.go The previous description of the DateTime function in pressure.go was misleading as it implied that the function would return a boolean. The function actually returns the date and time of a Pressure reading. The description has therefore been updated for clarity and accuracy. --- pressure.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pressure.go b/pressure.go index d279ac1..7def62c 100644 --- a/pressure.go +++ b/pressure.go @@ -20,8 +20,7 @@ func (p Pressure) IsAvailable() bool { return !p.na } -// DateTime returns true if an Pressure value was -// available at time of query +// DateTime returns the date and time of the Pressure reading func (p Pressure) DateTime() time.Time { return p.dt }