tweak error msgs
This commit is contained in:
parent
1f6b61cee0
commit
72be1167bd
3
f.go
3
f.go
|
@ -49,7 +49,7 @@ func main() {
|
||||||
|
|
||||||
tokens := strings.Split(input, " ")
|
tokens := strings.Split(input, " ")
|
||||||
if len(tokens) != 2 {
|
if len(tokens) != 2 {
|
||||||
fmt.Println("Please enter exactly two floats.")
|
fmt.Println("Please enter two floats separated by a space")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
old_low, err1 := strconv.ParseFloat(tokens[0], 64)
|
old_low, err1 := strconv.ParseFloat(tokens[0], 64)
|
||||||
|
@ -104,6 +104,7 @@ func main() {
|
||||||
new_low = 1.0 / new_high
|
new_low = 1.0 / new_high
|
||||||
new_high = 1.0 / tmp_low
|
new_high = 1.0 / tmp_low
|
||||||
default:
|
default:
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user