Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Aug 11, 2023
1 parent e124729 commit 6c0ef78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tzf.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package tzf
import (
"errors"
"fmt"
"sort"
"slices"

"github.com/ringsaturn/tzf/convert"
"github.com/ringsaturn/tzf/pb"
Expand Down Expand Up @@ -241,7 +241,7 @@ func (f *Finder) GetTimezoneNames(lng float64, lat float64) ([]string, error) {
for i := 0; i < len(item); i++ {
ret = append(ret, item[i].name)
}
sort.Strings(ret)
slices.Sort[[]string](ret)
return ret, nil
}

Expand Down

0 comments on commit 6c0ef78

Please sign in to comment.