Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/mir/format.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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\"`);
Expand Down