There was an error while loading. Please reload this page.
1 parent 8abe15b commit eae6b30Copy full SHA for eae6b30
1 file changed
playground/examples/variants.gengo
@@ -21,7 +21,7 @@ func describe(s Shape) {
21
c.radius, 3.14159 * c.radius * c.radius)
22
}
23
case .rect(r) {
24
- std.io.printf("rect %gx%g area=%.2f\n",
+ std.io.printf("rect %.1fx%.1f area=%.2f\n",
25
r.w, r.h, r.w * r.h)
26
27
default {
0 commit comments