summaryrefslogtreecommitdiffhomepage
path: root/typescript.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'typescript.html.markdown')
-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);
}
}