aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-02-26 09:42:24 +0000
committerGinger Bill <bill@gingerbill.org>2017-02-26 09:42:24 +0000
commit18b3c0b2fc2142c1acf73d5f90ef08c6bc8e1e7e (patch)
tree39a3ca996281494ccbc46f60fa864ba779f26c88 /code
parentc59f6b7d0b582131bed4450bbb9aa1a71d5a01af (diff)
Fix fmt integer width printing
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 345ac7922..a8511b29e 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -13,7 +13,7 @@ main :: proc() {
x := 624.123;
s := strconv.format_float(buf[:], x, 'f', 6, 64);
fmt.println(s);
- fmt.printf("%.3f\n", x);
+ fmt.printf("%3d\n", 102);
i := 123;
fmt.println(123);