Skip to content

Commit 5b90150

Browse files
authored
Rename text() template parameter from A to Args to comply with print() (#362)
1 parent bb0942e commit 5b90150

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/mir/format.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ unittest
5959
}
6060

6161
/// Concatenated string results
62-
string text(string separator = "", A...)(auto ref A args)
63-
if (A.length > 0)
62+
string text(string separator = "", Args...)(auto ref Args args)
63+
if (Args.length > 0)
6464
{
65-
static if (A.length == 1)
65+
static if (Args.length == 1)
6666
{
6767
import mir.functional: forward;
6868
import mir.conv: to;
@@ -406,7 +406,7 @@ ref W printEscaped(C, EscapeFormat escapeFormat = EscapeFormat.ion, W)(scope ret
406406
@safe pure nothrow @nogc
407407
version (mir_test) unittest
408408
{
409-
409+
410410
import mir.format: stringBuf;
411411
stringBuf w;
412412
assert(w.printEscaped("Hi \a\v\0\f\t\b \\\r\n" ~ `"@nogc"`).data == `Hi \a\v\0\f\t\b \\\r\n\"@nogc\"`);

0 commit comments

Comments
 (0)