https://www.hackertouch.com/rust-remove-last-character-from-string.html
Anonymous
Choose portability over efficiency.