From 1a9c19cdfc7a6dc150c530387e6f928bf77e144f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Nordl=C3=B6w?= Date: Sun, 19 Sep 2021 23:26:32 +0200 Subject: [PATCH] Rename text() template parameter from A to Args to comply with print() --- source/mir/format.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/mir/format.d b/source/mir/format.d index ef27bdd6..bbb613f1 100644 --- a/source/mir/format.d +++ b/source/mir/format.d @@ -59,10 +59,10 @@ unittest } /// Concatenated string results -string text(string separator = "", A...)(auto ref A args) - if (A.length > 0) +string text(string separator = "", Args...)(auto ref Args args) + if (Args.length > 0) { - static if (A.length == 1) + static if (Args.length == 1) { import mir.functional: forward; import mir.conv: to; @@ -406,7 +406,7 @@ ref W printEscaped(C, EscapeFormat escapeFormat = EscapeFormat.ion, W)(scope ret @safe pure nothrow @nogc version (mir_test) unittest { - + import mir.format: stringBuf; stringBuf w; assert(w.printEscaped("Hi \a\v\0\f\t\b \\\r\n" ~ `"@nogc"`).data == `Hi \a\v\0\f\t\b \\\r\n\"@nogc\"`);