Commit 0919aea5 authored by Anders Mundt Due's avatar Anders Mundt Due
Browse files

when returning K, K's gotta be the value :)

parent a56641d4
......@@ -10,4 +10,4 @@ func CToK(c Celcius) Kelvin { return Kelvin(c+273.15) }
// FtoC convert Fahrenheit to Celcius
func FToC(f Fahrenheit) Celcius { return Celcius((f-32)*5/9) }
func FToK(f Fahrenheit) Celcius { return Kelvin(FToC(f)) }
func FToK(f Fahrenheit) Kelvin { return Kelvin(FToC(f)) }
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