Skip to content

Commit cded3bc

Browse files
authored
Merge pull request ruanyf#1137 from w-l-l/patch-1
docs(class-extends): fix typo
2 parents 6288fc1 + e808d04 commit cded3bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/class-extends.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ B.foo.n // 99
220220
A.foo.n // 99
221221
```
222222

223-
上面示例中,`A.foo`的值是一个对象,浅拷贝导致`B.foo``A.foo`指向同一个对象。所以,子类`A`修改这个对象的属性值,会影响到父类`A`
223+
上面示例中,`A.foo`的值是一个对象,浅拷贝导致`B.foo``A.foo`指向同一个对象。所以,子类`B`修改这个对象的属性值,会影响到父类`A`
224224

225225
## Object.getPrototypeOf()
226226

0 commit comments

Comments
 (0)