diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-21 15:52:02 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-21 15:52:02 +0200 |
| commit | d25c2cba801cbaa9f9c0d5a92b90f153630ffe24 (patch) | |
| tree | 8fc2672984dde4a621944839b951a478bb87460a /mountain_pass | |
| parent | 5b1962f13809f4306b50536a2105252a71b5d74f (diff) | |
Upgrade to Go 1.27 and apply go fix modernization
Diffstat (limited to 'mountain_pass')
| -rw-r--r-- | mountain_pass/extract.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mountain_pass/extract.go b/mountain_pass/extract.go index 81bed68..705dbd3 100644 --- a/mountain_pass/extract.go +++ b/mountain_pass/extract.go @@ -86,7 +86,7 @@ func parseElevation(ele string) (int, bool) { if ele == "" { return 0, false } - for _, candidate := range strings.Fields(ele) { + for candidate := range strings.FieldsSeq(ele) { if value, err := strconv.Atoi(candidate); err == nil { return value, true } |
