Removed a GC allocation.

This commit is contained in:
Ferdinand Majerech 2014-07-23 00:46:37 +02:00
parent 66741654c3
commit b060699950

View file

@ -196,9 +196,9 @@ final class Reader
/// Params: length = Number or characters to get.
///
/// Returns: Characters starting at current position.
dstring get(size_t length) @safe pure nothrow
dstring get(size_t length) @safe pure nothrow @nogc
{
auto result = prefix(length).idup;
auto result = prefix(length);
forward(length);
return result;
}