std::core::string

strip_end

fn String String.strip_end(self, String suffix)
Strip the end of the string if the suffix exists.

Parameters