Skip to main content

trim

Function trim 

Source
pub fn trim(s: String) -> String
Expand description

Strips a single trailing newline (\n or \r\n) from the given string.