summaryrefslogtreecommitdiffhomepage
path: root/typescript.html.markdown
diff options
context:
space:
mode:
authorDivay Prakash <divayprakash@users.noreply.github.com>2020-01-31 01:50:36 +0530
committerGitHub <noreply@github.com>2020-01-31 01:50:36 +0530
commitdef2eed1654dab89e3af0a0adddf736e335a2068 (patch)
treed88c6bfede72fc148539f0cd827419461cb82fa2 /typescript.html.markdown
parentc25ff35503aac6377f5c574596b30df7cfc01b7e (diff)
parent5a57d01d05d1b53a8e2eb267ecc56ddbd75a6d46 (diff)
Merge pull request #3796 from lemusthelroy/patch-1
Typsecript/ts - Update typescript.html.markdown
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 7e857cc0..640be0cd 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);
}
}