summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvibhanshup <60642675+vibhanshup@users.noreply.github.com>2020-06-15 13:20:17 +0530
committerGitHub <noreply@github.com>2020-06-15 13:20:17 +0530
commita8398b35047caf6ec0dcf10c7e32078ea18489a9 (patch)
treeeceb662d90dc792d8e0ebeba8940aed64a68705d
parentef0480286342219c7a592926660018534f5af12a (diff)
[typescript/en] incorrect syntax in inheritance example
closes #3958
-rw-r--r--typescript.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/typescript.html.markdown b/typescript.html.markdown
index 640be0cd..7e857cc0 100644
--- a/typescript.html.markdown
+++ b/typescript.html.markdown
@@ -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);
}
}