[PATCH] Document variable-length padding in {w=?}
[Thread Prev] | [Thread Next]
- Subject: [PATCH] Document variable-length padding in {w=?}
- From: "S. Gilles" <sgilles@xxxxxxx>
- Reply-to: myrddin-dev@xxxxxxxxxxxxxx
- Date: Sun, 24 Nov 2019 18:22:30 -0500
- To: "myrddin-dev" <myrddin-dev@xxxxxxxxxxxxxx>
- Cc: "S. Gilles" <sgilles@xxxxxxx>
---
doc/libstd/fmt.txt | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/libstd/fmt.txt b/doc/libstd/fmt.txt
index 563049c..e872869 100644
--- a/doc/libstd/fmt.txt
+++ b/doc/libstd/fmt.txt
@@ -58,7 +58,11 @@ specified below.
<dl>
<dt>w=WIDTH</dt>
<dd><p>Fill out to at least width WIDTH, filling with pad
- characters.</p></dd>
+ characters.</p>
+ <p>If WIDTH is `?`, then the next argument passed must be an integer
+ type, it is used as the width, e.g. `std.put("{w=?}{w=?}\n", "foo",
+ 20, "bar", max_width)`.</p>
+ </dd>
<dt>p=PAD</dt>
<dd>
--
2.24.0
- Prev by Date: [PATCH v2 2/3] Make vanext decrement tc.nelt unconditionally
- Next by Date: [PATCH v2 3/3] Allow specifying padding width from variable
- Previous by thread: [PATCH v2 3/3] Allow specifying padding width from variable
- Next by thread: [PATCH] Force correct sign for intermediate steps of bigmul
- Index(es):