This commit is contained in:
Adam Millerchip 2022-01-01 12:39:23 +09:00
parent bd7e87fb25
commit f70ee68ed9
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ pub fn main() void {
// values. Therefore, it follows that we just specify numeric
// types with specific sizes. The comptime numbers will be
// coerced (if they'll fit!) into your chosen runtime types.
var var_int = 12345;
var var_float = 987.654;
var var_int: u32 = 12345;
var var_float: f32 = 987.654;
// We can change what is stored at the areas set aside for
// "var_int" and "var_float" in the running compiled program.