Skip to content

Commit eae6b30

Browse files
committed
fix: replace unsupported %g format with %.1f in variants example
1 parent 8abe15b commit eae6b30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

playground/examples/variants.gengo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func describe(s Shape) {
2121
c.radius, 3.14159 * c.radius * c.radius)
2222
}
2323
case .rect(r) {
24-
std.io.printf("rect %gx%g area=%.2f\n",
24+
std.io.printf("rect %.1fx%.1f area=%.2f\n",
2525
r.w, r.h, r.w * r.h)
2626
}
2727
default {

0 commit comments

Comments
 (0)