diff options
author | Max Schumacher <maximilianbschumacher@gmail.com> | 2020-07-08 12:22:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 12:22:02 +0200 |
commit | c72e1d5d975e9b24ada285db45316bcf38233ece (patch) | |
tree | 3129bfaadab271b2d1552a3790fe33076af8b67f | |
parent | 17e47f4d8a7fb02b9d4366d4925760e32db4c89a (diff) | |
parent | a8398b35047caf6ec0dcf10c7e32078ea18489a9 (diff) |
Merge pull request #3959 from vibhanshup/patch-2
[typescript/en] incorrect syntax in inheritance example
-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); } } |