1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-14 02:34:17 +02:00

[typescript/en] incorrect syntax in inheritance example

closes #3958
This commit is contained in:
vibhanshup
2020-06-15 13:20:17 +05:30
committed by GitHub
parent ef04802863
commit a8398b3504

View File

@@ -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);
} }
} }