summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/tanya/container/string.d8
1 files changed, 1 insertions, 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_];
}