Skip to content

Commit

Permalink
docs(class): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Oct 18, 2022
1 parent 36b55b9 commit ef5e3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/class.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Object.assign(Point.prototype, {
});
```

`prototype`对象的`constructor()`属性,直接指向“类”的本身,这与 ES5 的行为是一致的。
`prototype`对象的`constructor`属性,直接指向“类”的本身,这与 ES5 的行为是一致的。

```javascript
Point.prototype.constructor === Point // true
Expand Down

0 comments on commit ef5e3a2

Please sign in to comment.