Rename String.toString to String.get()
Last changed it only by the Range and forgotten about the string itself.
This commit is contained in:
parent
6f549df243
commit
278e851414
@ -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_];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user