aboutsummaryrefslogtreecommitdiff
path: root/mountain_pass/extract.go
diff options
context:
space:
mode:
Diffstat (limited to 'mountain_pass/extract.go')
-rw-r--r--mountain_pass/extract.go2
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
}