Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions reference/strings/functions/printf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ printf("[%-10s]\n", $s); // left-justification with spaces
printf("[%010s]\n", $s); // zero-padding works on strings too
printf("[%'#10s]\n", $s); // use the custom padding character '#'
printf("[%'#*s]\n", 10, $s); // Provide the padding width as an additional argument
printf("[%10.9s]\n", $t); // right-justification but with a cutoff of 8 characters
printf("[%-10.9s]\n", $t); // left-justification but with a cutoff of 8 characters
printf("[%10.9s]\n", $t); // right-justification but with a cutoff of 9 characters
printf("[%-10.9s]\n", $t); // left-justification but with a cutoff of 9 characters
?>
]]>
</programlisting>
Expand Down