This commit is contained in:
Mark McGranaghan 2012-11-05 11:02:04 -08:00
parent 8f52d0dec9
commit ee7e950346

View File

@ -22,7 +22,7 @@ func main() {
fmt.Println(int64(d)) fmt.Println(int64(d))
// A number can also be given a type by using it in a context that // A number can also be given a type by using it in a context that
// requires one, such as a variable assignment or funcion call. // requires one, such as a variable assignment or function call.
// The type it gets depends on its value. // The type it gets depends on its value.
fmt.Println(n) // int fmt.Println(n) // int
fmt.Println(d) // float64 fmt.Println(d) // float64