1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

Everywhere: Fix more typos

This commit is contained in:
Linus Groh 2020-10-02 22:14:37 +01:00 committed by Andreas Kling
parent 4e86c34ef0
commit bcfc6f0c57
57 changed files with 108 additions and 108 deletions

View file

@ -302,7 +302,7 @@ bool String::equals_ignoring_case(const StringView& other) const
return StringUtils::equals_ignoring_case(view(), other);
}
int String::replace(const String& needle, const String& replacement, bool all_occurences)
int String::replace(const String& needle, const String& replacement, bool all_occurrences)
{
if (is_empty())
return 0;
@ -316,7 +316,7 @@ int String::replace(const String& needle, const String& replacement, bool all_oc
pos = ptr - characters();
positions.append(pos);
if (!all_occurences)
if (!all_occurrences)
break;
start = pos + 1;