-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
On the functions page things are declared as floater and then the code try to access it as the variable f.
Guess someone did some really sloppy variablename changes
import "math"
//return A+B and A*B in a single shot
func MySqrt(floater float64) (squareroot float64, ok bool){
if floater > 0 {
squareroot, ok = math.Sqrt(f), true
}
return squareroot, ok
}
import "math"
//return A+B and A*B in a single shot
func MySqrt(floater float64) (squareroot float64, ok bool) {
if floater > 0 {
squareroot, ok = math.Sqrt(f), true
}
return // Omitting the output named variables, but keeping the "return".
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels