Skip to content

Commit ae011d1

Browse files
authored
fix: typing error
1 parent 40256f2 commit ae011d1

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)