DLiteScript

strings.trimRight

Removes whitespace from the end of a string.

Examples

1
printf("%s\n", strings.trimRight("  hello  ")) // "  hello"