Refine comment for DateTime function in speed.go

The comment for the DateTime function in the speed.go file was slightly confusing and inaccurate. It has been updated to more accurately reflect its purpose and functionality. It now clearly states that the function returns the DateTime when the Speed was checked, as originally intended.
This commit is contained in:
Winni Neessen 2023-06-27 19:12:35 +02:00
parent e3756a5466
commit 54cc672dfc
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -29,8 +29,7 @@ func (s Speed) IsAvailable() bool {
return !s.na
}
// DateTime returns true if an Speed value was
// available at time of query
// DateTime returns the DateTime when the Speed was checked
func (s Speed) DateTime() time.Time {
return s.dt
}