diff --git a/source/dyaml/reader.d b/source/dyaml/reader.d index 83a6659..5ece2f6 100644 --- a/source/dyaml/reader.d +++ b/source/dyaml/reader.d @@ -279,7 +279,7 @@ final class Reader /// Returns: Characters starting at current position. char[] get(const size_t length) @safe pure nothrow @nogc { - auto result = prefix(length); + auto result = slice(length); forward(length); return result; }