Skip to content

Commit

Permalink
fix: typo (#1487)
Browse files Browse the repository at this point in the history
  • Loading branch information
cc-hearts authored Mar 21, 2024
1 parent 526559d commit 17c37b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export default function App() {
}
```
要使用 Promise 的 <CodeStep step={1}>`catch`</CodeStep> 方法,请在 Promise 对象上调用 <CodeStep step={1}>`catch`</CodeStep>。<CodeStep step={1}>`catch`</CodeStep> 接受一个参数:一个接受错误消息作为参数的函数。由传递给 <CodeStep step={1}>`catch`</CodeStep> 的函数 <CodeStep step={2}>返回</CodeStep> 的任何内容都将视为 Promise 的解决值。<CodeStep step={2}>返回</CodeStep>。
要使用 Promise 的 <CodeStep step={1}>`catch`</CodeStep> 方法,请在 Promise 对象上调用 <CodeStep step={1}>`catch`</CodeStep>。<CodeStep step={1}>`catch`</CodeStep> 接受一个参数:一个接受错误消息作为参数的函数。由传递给 <CodeStep step={1}>`catch`</CodeStep> 的函数 <CodeStep step={2}>返回</CodeStep> 的任何内容都将视为 Promise 的解决值。
---
Expand Down

0 comments on commit 17c37b8

Please sign in to comment.