Skip to content

Commit

Permalink
core.internal.string: Make non-mutable TempStringNoAlloc usable
Browse files Browse the repository at this point in the history
This is blocking dlang/dmd#11005.
  • Loading branch information
kinke committed Apr 4, 2020
1 parent 0f67834 commit 9730d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/internal/string.d
Expand Up @@ -58,7 +58,7 @@ private struct TempStringNoAlloc()
// need to handle 65 bytes for radix of 2 with negative sign.
private char[65] _buf = void;
private ubyte _len;
auto get() return
inout(char)[] get() inout return
{
return _buf[$-_len..$];
}
Expand Down

0 comments on commit 9730d22

Please sign in to comment.