diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-04 16:51:31 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-04 16:51:31 -0300 |
commit | b291008cc2a63eb19918d4cce7e58118f4154b03 (patch) | |
tree | 14c89b9167509a867522329f2f587682dff3863b /manual | |
parent | 814213b65fa4ab2b1a7216d06f68a6f3df89efcd (diff) | |
download | lua-b291008cc2a63eb19918d4cce7e58118f4154b03.tar.gz lua-b291008cc2a63eb19918d4cce7e58118f4154b03.tar.bz2 lua-b291008cc2a63eb19918d4cce7e58118f4154b03.zip |
Manual for 'string.format' lists what it accepts
Instead of listing what it does not accept, which is always relative.
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/manual/manual.of b/manual/manual.of index 359bd166..337731fe 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -7308,9 +7308,12 @@ Returns a formatted version of its variable number of arguments | |||
7308 | following the description given in its first argument, | 7308 | following the description given in its first argument, |
7309 | which must be a string. | 7309 | which must be a string. |
7310 | The format string follows the same rules as the @ANSI{sprintf}. | 7310 | The format string follows the same rules as the @ANSI{sprintf}. |
7311 | The only differences are that the conversion specifiers and modifiers | 7311 | The accepted conversion specifiers are |
7312 | @id{F}, @id{n}, @T{*}, @id{h}, @id{L}, and @id{l} are not supported | 7312 | @id{A}, @id{a}, @id{c}, @id{d}, @id{E}, @id{e}, @id{f}, @id{G}, @id{g}, |
7313 | and that there is an extra specifier, @id{q}. | 7313 | @id{i}, @id{o}, @id{p}, @id{s}, @id{u}, @id{X}, and @id{x}, |
7314 | plus a non-C specifier @id{q}. | ||
7315 | The accepted flags are @Char{-}, @Char{+}, @Char{#}, | ||
7316 | @Char{0}, and @Char{ } (space). | ||
7314 | Both width and precision, when present, | 7317 | Both width and precision, when present, |
7315 | are limited to two digits. | 7318 | are limited to two digits. |
7316 | 7319 | ||