Skip to content

Commit

Permalink
Some reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Sep 23, 2018
1 parent 7c0bd57 commit 1b90fc6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions doc/Type/Str.pod6
Expand Up @@ -643,7 +643,7 @@ Between the C<%> and the format letter, you may specify several
additional attributes controlling the interpretation of the format. In
order, these are:
B<format parameter index>
B<Format parameter index>
An explicit format parameter index, such as C<2$>. By default,
C<sprintf> will format the next unused argument in the list, but this
Expand All @@ -652,7 +652,7 @@ allows you to take the arguments out of order:
sprintf '%2$d %1$d', 12, 34; # OUTPUT: «34 12␤»
sprintf '%3$d %d %1$d', 1, 2, 3; # OUTPUT: «3 1 1␤»
B<flags>
B<Flags>
One or more of:
Expand Down Expand Up @@ -696,7 +696,7 @@ When the C<#> flag and a precision are given in the C<%o> conversion, the necess
say sprintf '<%#.0o>', 0; # OUTPUT: «<>␤» zero precision and value 0 results in no output!
say sprintf '<%#.0o>', 0o1 # OUTPUT: «<01>␤»
B<vector flag>
B<Vector flag>
This flag tells Perl 6 to interpret the supplied string as a vector of
integers, one for each character in the string. Perl 6 applies the
Expand All @@ -716,7 +716,7 @@ join string using something like C<*2$v>; for example:
@addr[1..3], ":";
=end code
B<(minimum) width>
B<(Minimum) Width>
Arguments are usually formatted to be only as wide as required to
display the given value. You can override the width by putting a
Expand All @@ -734,7 +734,7 @@ from a specified argument (e.g., with C<*2$>):
If a field width obtained through C<*> is negative, it has the same
effect as the C<-> flag: left-justification.
B<precision, or maximum width>
B<Precision, or maximum width>
You can specify a precision (for numeric conversions) or a maximum
width (for string conversions) by specifying a C<.> followed by a
Expand Down Expand Up @@ -766,8 +766,8 @@ For integer conversions, specifying a precision implies that the
output of the number itself should be zero-padded to this width, where
the C<0> flag is ignored:
(Note that this feature currently works for unsigned integer conversions, but not
for signed integer.)
(Note that this feature currently works for unsigned integer conversions, but
not for signed integer.)
=begin code :skip-test
sprintf '<%.6d>', 1; # <000001>
Expand Down Expand Up @@ -811,7 +811,7 @@ no precision at all:
sprintf '<%.*d>', 0, 0; # RESULT: «<>␤»
sprintf '<%.*d>', -1, 0; # RESULT: «<0>␤»
B<size>
B<Size>
For numeric conversions, you can specify the size to interpret the
number as using C<l>, C<h>, C<V>, C<q>, C<L>, or C<ll>. For integer
Expand All @@ -834,7 +834,7 @@ used to build Perl 6:
z | interpret integer as C type "size_t"
=end table
B<order of arguments>
B<Order of arguments>
Normally, C<sprintf> takes the next unused argument as the value to
format for each format specification. If the format specification uses
Expand Down

0 comments on commit 1b90fc6

Please sign in to comment.