uuid.d: sink() should not leak its parameter

This commit is contained in:
Walter Bright 2018-06-08 02:20:18 -07:00
parent f8a17a7898
commit d8f78b75cf

View file

@ -952,7 +952,7 @@ public struct UUID
assert(u1.toString() == "8ab3060e-2cba-4f23-b74c-b52db3bdfb46");
char[] buf;
void sink(const(char)[] data)
void sink(scope const(char)[] data)
{
buf ~= data;
}