Function wagon_utils::rem_last_char

source ·
pub fn rem_last_char(value: &str) -> String
Expand description

Removes last character of a string.

§Example

use wagon_utils::rem_last_char;

let s = "123";
assert_eq!("12", rem_last_char(s));