Skip to content

Commit 0cd4571

Browse files
committed
Merge pull request #535 from titsuki/fix-printf
Fix printf arguments
2 parents bbe2538 + cc620b5 commit 0cd4571

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/Type/Str.pod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,11 @@ no-ops (the semantics are still being determined).
425425
426426
Examples:
427427
428-
printf('%c', [97]); # a
429-
printf("%.2f", [1.969]); # 1.97
430-
printf("%+.3f", [3.141592]); # +3.142
431-
printf('%2$d %1$d', [12, 34]); # 34 12
432-
printf("%x", [255]); # ff
428+
printf('%c', 97); # a
429+
printf("%.2f", 1.969); # 1.97
430+
printf("%+.3f", 3.141592); # +3.142
431+
printf('%2$d %1$d', 12, 34); # 34 12
432+
printf("%x", 255); # ff
433433
434434
Special case: printf("<b>%s</b>\n", "Perl 6") will not work use either of the following:
435435

0 commit comments

Comments
 (0)