mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
Userland: Prefer _string
over _short_string
As `_string` can't fail anymore (since 3434412
), there are no real
benefits to use the short variant in most cases.
This commit is contained in:
parent
a5edc9cdfc
commit
3f35ffb648
198 changed files with 684 additions and 684 deletions
|
@ -1233,7 +1233,7 @@ ThrowCompletionOr<RawFormatResult> to_raw_fixed(VM& vm, MathematicalValue const&
|
|||
|
||||
// 7. If n = 0, let m be "0". Otherwise, let m be the String consisting of the digits of the decimal representation of n (in order, with no leading zeroes).
|
||||
result.formatted_string = n.is_zero()
|
||||
? "0"_short_string
|
||||
? "0"_string
|
||||
: MUST_OR_THROW_OOM(n.to_string(vm));
|
||||
|
||||
// 8. If f ≠ 0, then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue