Skip to content

Commit 8e55e34

Browse files
committed
Use const paramater in mir.format.text to reduce template bloat
1 parent bb0942e commit 8e55e34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/mir/format.d

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

6161
/// Concatenated string results
62-
string text(string separator = "", A...)(auto ref A args)
62+
string text(string separator = "", A...)(auto ref const(A) args)
6363
if (A.length > 0)
6464
{
6565
static if (A.length == 1)
@@ -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)