From a8398b35047caf6ec0dcf10c7e32078ea18489a9 Mon Sep 17 00:00:00 2001 From: vibhanshup <60642675+vibhanshup@users.noreply.github.com> Date: Mon, 15 Jun 2020 13:20:17 +0530 Subject: [PATCH] [typescript/en] incorrect syntax in inheritance example closes #3958 --- typescript.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }