tweak error msgs

This commit is contained in:
NunoSempere 2024-05-10 20:53:30 +01:00
parent 1f6b61cee0
commit 72be1167bd

3
f.go
View File

@ -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
} }
} }