HomeManualTopicsTypesSymbols
std::trim_right
removes trailing whitespace
Parameters
- self
- test (default: is_a_whitespace_character)
Results
None
Description
Returns a string which is the specified string without any trailing whitespace.
Example
$str " text "
$trimmed_str trim_right(str)
println! '*' trimmed_str '*'
Output
* text*
Topic
Strings
See also