mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:57:46 +00:00
Everywhere: Behaviour => Behavior
This commit is contained in:
parent
55b0b06897
commit
6ad427993a
48 changed files with 120 additions and 120 deletions
|
@ -252,7 +252,7 @@ void FormatBuilder::put_u64(
|
|||
size_t used_by_prefix = 0;
|
||||
if (align == Align::Right && zero_pad) {
|
||||
// We want String::formatted("{:#08x}", 32) to produce '0x00000020' instead of '0x000020'. This
|
||||
// behaviour differs from both fmtlib and printf, but is more intuitive.
|
||||
// behavior differs from both fmtlib and printf, but is more intuitive.
|
||||
used_by_prefix = 0;
|
||||
} else {
|
||||
if (is_negative || sign_mode != SignMode::OnlyIfNeeded)
|
||||
|
|
|
@ -250,11 +250,11 @@ public:
|
|||
}
|
||||
|
||||
template<typename U = T>
|
||||
HashSetResult set(U&& value, HashSetExistingEntryBehavior existing_entry_behaviour = HashSetExistingEntryBehavior::Replace)
|
||||
HashSetResult set(U&& value, HashSetExistingEntryBehavior existing_entry_behavior = HashSetExistingEntryBehavior::Replace)
|
||||
{
|
||||
auto& bucket = lookup_for_writing(value);
|
||||
if (bucket.used) {
|
||||
if (existing_entry_behaviour == HashSetExistingEntryBehavior::Keep)
|
||||
if (existing_entry_behavior == HashSetExistingEntryBehavior::Keep)
|
||||
return HashSetResult::KeptExistingEntry;
|
||||
(*bucket.slot()) = forward<U>(value);
|
||||
return HashSetResult::ReplacedExistingEntry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue