6 lines
126 B
Rust
6 lines
126 B
Rust
pub fn remove_last_char(input: &str) -> &str {
|
|
let mut chars = input.chars();
|
|
chars.next_back();
|
|
chars.as_str()
|
|
}
|