docs(class): fix typo

This commit is contained in:
ruanyf
2022-10-18 21:11:54 +08:00
parent 36b55b9ec9
commit ef5e3a2ea3
+1 -1
View File
@@ -120,7 +120,7 @@ Object.assign(Point.prototype, {
});
```
`prototype`对象的`constructor()`属性,直接指向“类”的本身,这与 ES5 的行为是一致的。
`prototype`对象的`constructor`属性,直接指向“类”的本身,这与 ES5 的行为是一致的。
```javascript
Point.prototype.constructor === Point // true