Skip to content

Commit

Permalink
chore: 统一 receiver 名称
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Apr 29, 2024
1 parent b701a15 commit 49787b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions region.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func (r *Region) Versions() []int { return r.versions } // 支持的年份版
func (r *Region) Items() []*Region { return r.items } // 子项

// IsSupported 当前数据是否支持该年份
func (reg *Region) IsSupported(ver int) bool {
for _, y := range reg.versions {
func (r *Region) IsSupported(ver int) bool {
for _, y := range r.versions { // TODO(go1.21) slices.Index
if y == ver {
return true
}
Expand Down

0 comments on commit 49787b7

Please sign in to comment.