mirror of
https://github.com/dlang/phobos.git
synced 2025-05-05 01:20:40 +03:00
fixed unlisted bug in documentation
This commit is contained in:
parent
55540d9286
commit
ecd5a1de11
1 changed files with 4 additions and 4 deletions
|
@ -2131,10 +2131,10 @@ import std.format;
|
|||
|
||||
string myFormat(A...)(A args)
|
||||
{
|
||||
StringWriter!(char) writer;
|
||||
Appender!(string) writer;
|
||||
std.format.formattedWrite(writer,
|
||||
"%s et %s numeris romanis non sunt", args);
|
||||
return writer.backend;
|
||||
return writer.data;
|
||||
}
|
||||
...
|
||||
int x = 42;
|
||||
|
@ -2146,9 +2146,9 @@ opengroup.org/onlinepubs/009695399/functions/printf.html, POSIX)
|
|||
style. Example:
|
||||
|
||||
-------------------------
|
||||
StringWriter!(char) writer;
|
||||
Appender!(string) writer;
|
||||
std.format.formattedWrite(writer, "Date: %2$s %1$s", "October", 5);
|
||||
assert(writer.backend == "Date: 5 October");
|
||||
assert(writer.data == "Date: 5 October");
|
||||
------------------------
|
||||
|
||||
The positional and non-positional styles can be mixed in the same
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue