Rename String.toString to String.get()

Last changed it only by the Range and forgotten about the string itself.
This commit is contained in:
Eugen Wissner 2017-06-08 07:59:16 +02:00
parent 6f549df243
commit 278e851414

View File

@ -943,13 +943,7 @@ struct String
* *
* Returns: The array representing the string. * Returns: The array representing the string.
*/ */
const(char)[] toString() const pure nothrow @trusted @nogc inout(char)[] get() inout pure nothrow @trusted @nogc
{
return this.data[0 .. this.length_];
}
/// Ditto.
char[] toString() pure nothrow @trusted @nogc
{ {
return this.data[0 .. this.length_]; return this.data[0 .. this.length_];
} }