LibWeb: Print correct value types in ComponentValue debug string

Block and Function names were swapped.
This commit is contained in:
Karol Kosek 2022-06-10 20:39:45 +02:00 committed by Linus Groh
parent 65afa113e5
commit 6291821489
Notes: sideshowbarker 2024-07-17 11:06:06 +09:00

View file

@ -41,10 +41,10 @@ String ComponentValue::to_debug_string() const
return String::formatted("Token: {}", token.to_debug_string());
},
[](NonnullRefPtr<Block> const& block) {
return String::formatted("Function: {}", block->to_string());
return String::formatted("Block: {}", block->to_string());
},
[](NonnullRefPtr<Function> const& function) {
return String::formatted("Block: {}", function->to_string());
return String::formatted("Function: {}", function->to_string());
});
}