LibWeb: Print correct value types in ComponentValue debug string
Block and Function names were swapped.
This commit is contained in:
parent
65afa113e5
commit
6291821489
Notes:
sideshowbarker
2024-07-17 11:06:06 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/6291821489 Pull-request: https://github.com/SerenityOS/serenity/pull/14252 Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue