truncate

fun truncate(len: <Error class: unknown class>): String

Cuts off the end of the GString, leaving the first @len bytes.

Return

@string

Parameters

len

the new size of @string