Skip to content

Commit 4377605

Browse files
authored
Merge pull request ruanyf#881 from AmyFoxFN/patch-1
fix: typing error
2 parents 40256f2 + ae011d1 commit 4377605

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
@@ -169,7 +169,7 @@ class B extends A {
169169
}
170170
```
171171

172-
上面代码中,`super()`用在`B`类的`m`方法之中,就会造成句法错误
172+
上面代码中,`super()`用在`B`类的`m`方法之中,就会造成语法错误
173173

174174
第二种情况,`super`作为对象时,在普通方法中,指向父类的原型对象;在静态方法中,指向父类。
175175

0 commit comments

Comments
 (0)