get() now calls slice() directly instead of through prefix().

This commit is contained in:
Ferdinand Majerech 2014-08-05 20:42:51 +02:00
parent bfa2f1bd5c
commit d9079de427

View file

@ -279,7 +279,7 @@ final class Reader
/// Returns: Characters starting at current position. /// Returns: Characters starting at current position.
char[] get(const size_t length) @safe pure nothrow @nogc char[] get(const size_t length) @safe pure nothrow @nogc
{ {
auto result = prefix(length); auto result = slice(length);
forward(length); forward(length);
return result; return result;
} }