Skip to content

Commit

Permalink
docs(object): fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Dec 25, 2024
1 parent 01709c9 commit 65ea555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/object.md
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ actual.cause; // 'Error cause'

上面示例中,生成 Error 实例时,使用描述对象给出`cause`属性,写入报错的原因。然后,就可以从实例对象上读取这个属性。

`casue`属性可以放置任意内容,不必一定是字符串。
`cause`属性可以放置任意内容,不必一定是字符串。

```javascript
try {
Expand Down

0 comments on commit 65ea555

Please sign in to comment.