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.
This commit is contained in:
Winni Neessen 2023-06-27 18:59:13 +02:00
parent c9d95300c2
commit 513d7b863f
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -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
}