mirror of
https://github.com/dlang/phobos.git
synced 2025-04-26 13:10:35 +03:00
uuid.d: sink() should not leak its parameter
This commit is contained in:
parent
f8a17a7898
commit
d8f78b75cf
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue