LibWeb: Serialize Frequency according to spec
This commit is contained in:
parent
5dc82db0cb
commit
b6d767fbb0
Notes:
sideshowbarker
2024-07-17 01:11:48 +09:00
Author: https://github.com/stelar7 Commit: https://github.com/SerenityOS/serenity/commit/b6d767fbb0 Pull-request: https://github.com/SerenityOS/serenity/pull/19163
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ Frequency Frequency::percentage_of(Percentage const& percentage) const
|
|||
|
||||
ErrorOr<String> Frequency::to_string() const
|
||||
{
|
||||
return String::formatted("{}{}", m_value, unit_name());
|
||||
return String::formatted("{}hz", to_hertz());
|
||||
}
|
||||
|
||||
float Frequency::to_hertz() const
|
||||
|
|
Loading…
Add table
Reference in a new issue