mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-05 14:28:31 +00:00
Merge pull request #3959 from vibhanshup/patch-2
[typescript/en] incorrect syntax in inheritance example
This commit is contained in:
commit
c72e1d5d97
@ -139,7 +139,7 @@ class Point3D extends Point {
|
|||||||
// Overwrite
|
// Overwrite
|
||||||
dist() {
|
dist() {
|
||||||
let d = super.dist();
|
let d = super.dist();
|
||||||
return Math.sqrt(d() * d() + this.z * this.z);
|
return Math.sqrt(d * d + this.z * this.z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user