1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-12 09:44:24 +02:00

Merge pull request #3959 from vibhanshup/patch-2

[typescript/en] incorrect syntax in inheritance example
This commit is contained in:
Max Schumacher
2020-07-08 12:22:02 +02:00
committed by GitHub

View File

@@ -139,7 +139,7 @@ class Point3D extends Point {
// Overwrite
dist() {
let d = super.dist();
return Math.sqrt(d() * d() + this.z * this.z);
return Math.sqrt(d * d + this.z * this.z);
}
}