Skip to content

Commit

Permalink
Fix const(char)[] typing on 2.108.
Browse files Browse the repository at this point in the history
  • Loading branch information
FeepingCreature committed May 14, 2024
1 parent 7e7232d commit 8679b7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/log.d
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,11 @@ struct Log

// Helper to allow using named references in format strings, ie. treat %{name} equivalent to %s.
// Avoid std.regex because it's used at CTFE.
private string simplifyNamedReferences(string fmt)
private const(char)[] simplifyNamedReferences(const(char)[] fmt)
{
import std.exception : enforce;

string replacement = fmt;
const(char)[] replacement = fmt;

while (replacement.canFind("%{"))
{
Expand Down

0 comments on commit 8679b7d

Please sign in to comment.