diff options
| author | Eugen Wissner <belka@caraus.de> | 2017-06-08 07:59:16 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2017-06-08 07:59:16 +0200 |
| commit | 278e8514143d91458a393bf8b395c804f979b0ce (patch) | |
| tree | ecf1c82eb4ad3423449166fb8b7ea76cdaae623f | |
| parent | 6f549df243df25cf6525f71e1d5c81a3ab4b8f08 (diff) | |
| download | tanya-278e8514143d91458a393bf8b395c804f979b0ce.tar.gz | |
Rename String.toString to String.get()v0.6.0
Last changed it only by the Range and forgotten about the string itself.
| -rw-r--r-- | source/tanya/container/string.d | 8 |
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_]; } |
