diff --git a/docs/faq/faq.md b/docs/faq/faq.md index d7a51bd..b300b44 100644 --- a/docs/faq/faq.md +++ b/docs/faq/faq.md @@ -42,8 +42,8 @@ const target2 = toPositiveSign(toPercent(-num, { multiply: 10 })); export default () => ( <> -

保留小数位+正负符号:{target1}

-

转换百分数+正负符号:{target2}

+

保留小数位+正负符号:{target1}

+

转换百分数+正负符号:{target2}

); ``` @@ -68,11 +68,7 @@ function compose(...funcs) { } const num = 0.064385; -const target1 = compose(toPositiveSign, toFixed)(num); +const target = compose(toPositiveSign, toFixed)(num); -export default () => ( - <> -

{target1}

- -); +export default () => target; ```