mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
LibWeb: Serialize Frequency according to spec
This commit is contained in:
parent
5dc82db0cb
commit
b6d767fbb0
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
Add a link
Reference in a new issue