Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- If input is a string of only spaces, index becomes -1 during removes trailing spaces operation, referencing the wrong memory. - If the referenced memory value is a space, out_of_range occurs because -1 is entered in the erase function pos parameter. - Modify to return immediately if the input value is empty after the removes leading spaces operation.
- Loading branch information