Commit 51c5bfd2 authored by Anders Mundt Due's avatar Anders Mundt Due
Browse files

think that's the last error :)

parent b9d976dd
......@@ -19,6 +19,6 @@ func main() {
f := tempconv.Fahrenheit(t)
c := tempconv.Celcius(t)
fmt.Printf("%s = %s, %s = %s\n",
f = tempconv.FToC(f), c, tempconv.CToF(c))
f, tempconv.FToC(f), c, tempconv.CToF(c))
}
}
......@@ -4,4 +4,4 @@ package tempconv
func CToF(c Celcius) Fahrenheit { return Fahrenheit(c*9/5+32)}
// FtoC convert Fahrenheit to Celcius
func FToC(f Fahrenheit) { return Celcius((f-32)*5/9) }
func FToC(f Fahrenheit) Celcius { return Celcius((f-32)*5/9) }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment