summaryrefslogtreecommitdiffstatshomepage
path: root/exercises/060_floats.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/060_floats.zig')
-rw-r--r--exercises/060_floats.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/060_floats.zig b/exercises/060_floats.zig
index 1320171..69b3946 100644
--- a/exercises/060_floats.zig
+++ b/exercises/060_floats.zig
@@ -43,7 +43,7 @@ pub fn main() void {
//
// We'll convert this weight from tons to kilograms at a
// conversion of 907.18kg to the ton.
- var shuttle_weight: f16 = 907.18 * 2200;
+ const shuttle_weight: f16 = 907.18 * 2200;
// By default, float values are formatted in scientific
// notation. Try experimenting with '{d}' and '{d:.3}' to see