Same change for the other get_slice_count.

This commit is contained in:
Relintai 2021-11-19 22:47:03 +01:00
parent 6bfc78ec49
commit 4acfa61f58

View File

@ -358,7 +358,7 @@ void String::trim_end() {
}
int String::get_slice_count(const char splitter) const {
int count = 0;
int count = 1;
for (int i = 0; i < _size; ++i) {
if (_data[i] == splitter) {