From 278e8514143d91458a393bf8b395c804f979b0ce Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 8 Jun 2017 07:59:16 +0200 Subject: [PATCH] Rename String.toString to String.get() Last changed it only by the Range and forgotten about the string itself. --- source/tanya/container/string.d | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/source/tanya/container/string.d b/source/tanya/container/string.d index 7e50458..19f9d89 100644 --- a/source/tanya/container/string.d +++ b/source/tanya/container/string.d @@ -943,13 +943,7 @@ struct String * * Returns: The array representing the string. */ - const(char)[] toString() const pure nothrow @trusted @nogc - { - return this.data[0 .. this.length_]; - } - - /// Ditto. - char[] toString() pure nothrow @trusted @nogc + inout(char)[] get() inout pure nothrow @trusted @nogc { return this.data[0 .. this.length_]; }