單行註解
e := 2.7182818284 // Euler's number
多行註解
/* BMI formula BMI = weight / (height * height) weight unit : kg height unit : m */ fn bmi(weight f32, height f32) f32 { return weight / (height * height) }
Last updated 2 years ago