Skip to content

Commit 9a6abda

Browse files
nordlow9il
andauthored
Use const parameters in mir.format to reduce template bloat (#359)
* Use const paramater in mir.format.text to reduce template bloat * Update format.d Co-authored-by: Ilya Yaroshenko <ilyayaroshenko@gmail.com>
1 parent 5b90150 commit 9a6abda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/mir/format.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ unittest
5959
}
6060

6161
/// Concatenated string results
62-
string text(string separator = "", Args...)(auto ref Args args)
62+
string text(string separator = "", Args...)(auto ref const(Args) args)
6363
if (Args.length > 0)
6464
{
6565
static if (Args.length == 1)

0 commit comments

Comments
 (0)