Skip to main content

Trim trailing whitespace (string.rtrim)

Declaration

out = string.rtrim(text)

Parameters

  • text
    string. Text to trim.

Returns

  • out
    string. The text with trailing whitespace removed.

Description

Remove trailing whitespace characters.
Whitespace includes "\r" "\n" "\t".

Example

At the end of this chapter