pub fn remove_char(s: &str) -> StringExpand description
Your goal is to write a function that removes the first and last characters of a string. You’re given one parameter, the original string. Important: Your function should handle strings of any length ≥ 2 characters. For strings with exactly 2 characters, return an empty string.
§Example
remove_char("eloquent");
returns “loquen”