Skip to content

Commit

Permalink
docs: improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitusun committed Apr 22, 2024
1 parent 8c7fd85 commit 3829b7b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions docs/faq/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const target2 = toPositiveSign(toPercent(-num, { multiply: 10 }));

export default () => (
<>
<p>保留小数位+正负符号:{target1}</p>
<p>转换百分数+正负符号:{target2}</p>
<p>保留小数位+正负符号:{target1}</p>
<p>转换百分数+正负符号:{target2}</p>
</>
);
```
Expand All @@ -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 () => (
<>
<p>{target1}</p>
</>
);
export default () => target;
```

0 comments on commit 3829b7b

Please sign in to comment.