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
commit c72e1d5d97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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