pub fn strip_right(string: &str, char: char) -> &str
Expand description

Removes the given character at the end of the string.

Examples

use kalgan_string;

assert_eq!(kalgan_string::strip_right("Hello World", 'd'), "Hello Worl");