diff options
| author | vibhanshup <60642675+vibhanshup@users.noreply.github.com> | 2020-06-15 13:20:17 +0530 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-15 13:20:17 +0530 | 
| commit | a8398b35047caf6ec0dcf10c7e32078ea18489a9 (patch) | |
| tree | eceb662d90dc792d8e0ebeba8940aed64a68705d /typescript.html.markdown | |
| parent | ef0480286342219c7a592926660018534f5af12a (diff) | |
[typescript/en] incorrect syntax in inheritance example
closes #3958
Diffstat (limited to 'typescript.html.markdown')
| -rw-r--r-- | typescript.html.markdown | 2 | 
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);    }  } | 
