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

Everywhere: Change spelling of 'behaviour' to 'behavior'

"The official project language is American English […]."
5d2e915623/CONTRIBUTING.md (L30)

Here's a short statistic of the occurrences of the word "behavio(u)r":

$ git grep -IPioh 'behaviou?r' | sort | uniq -c | sort -n
      2 BEHAVIOR
     24 Behaviour
     32 behaviour
    407 Behavior
    992 behavior

Therefore, it is clear that "behaviour" (56 occurrences) should be
regarded a typo, and "behavior" (1401 occurrences) should be preferred.

Note that The occurrences in LibJS are intentionally NOT changed,
because there are taken verbatim from the specification. Hence:

$ git grep -IPioh 'behaviou?r' | sort | uniq -c | sort -n
      2 BEHAVIOR
     10 behaviour
     24 Behaviour
    407 Behavior
   1014 behavior
This commit is contained in:
Ben Wiederhake 2023-05-06 16:53:22 +02:00 committed by Jelle Raaijmakers
parent d5f8dac2bd
commit 36ff6187f6
11 changed files with 20 additions and 20 deletions

View file

@ -65,12 +65,12 @@ bool Variant::operator==(Variant const& other) const
return own_value == other_value;
else if constexpr (IsSame<T, GUI::Icon>)
return &own_value.impl() == &other_value.impl();
// FIXME: Figure out if this silly behaviour is actually used anywhere, then get rid of it.
// FIXME: Figure out if this silly behavior is actually used anywhere, then get rid of it.
else
return to_deprecated_string() == other.to_deprecated_string();
},
[&](auto const&) {
// FIXME: Figure out if this silly behaviour is actually used anywhere, then get rid of it.
// FIXME: Figure out if this silly behavior is actually used anywhere, then get rid of it.
return to_deprecated_string() == other.to_deprecated_string();
});
});
@ -91,12 +91,12 @@ bool Variant::operator<(Variant const& other) const
return own_value->name() < other_value->name();
else if constexpr (requires { own_value < other_value; })
return own_value < other_value;
// FIXME: Figure out if this silly behaviour is actually used anywhere, then get rid of it.
// FIXME: Figure out if this silly behavior is actually used anywhere, then get rid of it.
else
return to_deprecated_string() < other.to_deprecated_string();
},
[&](auto const&) -> bool {
return to_deprecated_string() < other.to_deprecated_string(); // FIXME: Figure out if this silly behaviour is actually used anywhere, then get rid of it.
return to_deprecated_string() < other.to_deprecated_string(); // FIXME: Figure out if this silly behavior is actually used anywhere, then get rid of it.
});
});
}