aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-06-04 16:51:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-06-04 16:51:31 -0300
commitb291008cc2a63eb19918d4cce7e58118f4154b03 (patch)
tree14c89b9167509a867522329f2f587682dff3863b /manual
parent814213b65fa4ab2b1a7216d06f68a6f3df89efcd (diff)
downloadlua-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.of9
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
7308following the description given in its first argument, 7308following the description given in its first argument,
7309which must be a string. 7309which must be a string.
7310The format string follows the same rules as the @ANSI{sprintf}. 7310The format string follows the same rules as the @ANSI{sprintf}.
7311The only differences are that the conversion specifiers and modifiers 7311The 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},
7313and that there is an extra specifier, @id{q}. 7313@id{i}, @id{o}, @id{p}, @id{s}, @id{u}, @id{X}, and @id{x},
7314plus a non-C specifier @id{q}.
7315The accepted flags are @Char{-}, @Char{+}, @Char{#},
7316@Char{0}, and @Char{ } (space).
7314Both width and precision, when present, 7317Both width and precision, when present,
7315are limited to two digits. 7318are limited to two digits.
7316 7319