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:
parent
c9d95300c2
commit
513d7b863f
|
@ -20,8 +20,7 @@ func (p Pressure) IsAvailable() bool {
|
||||||
return !p.na
|
return !p.na
|
||||||
}
|
}
|
||||||
|
|
||||||
// DateTime returns true if an Pressure value was
|
// DateTime returns the date and time of the Pressure reading
|
||||||
// available at time of query
|
|
||||||
func (p Pressure) DateTime() time.Time {
|
func (p Pressure) DateTime() time.Time {
|
||||||
return p.dt
|
return p.dt
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue