Function kalgan_string::strip_right
source · [−]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");
Removes the given character at the end of the string.
use kalgan_string;
assert_eq!(kalgan_string::strip_right("Hello World", 'd'), "Hello Worl");