From f917d90874048ae27efed68e3f5f8f960c3e6935 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 30 Aug 2026 13:32:35 +0100 Subject: Use const instead of var --- examples/01-struct/output/typescript/src/point.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/01-struct/output/typescript/src/point.test.ts b/examples/01-struct/output/typescript/src/point.test.ts index d5e8533..490002e 100644 --- a/examples/01-struct/output/typescript/src/point.test.ts +++ b/examples/01-struct/output/typescript/src/point.test.ts @@ -5,9 +5,9 @@ import {test} from "mocha"; import {Point} from "./point.ts"; test("pointFields", () => { - var point = new Point(10, 25); - var x: number = point.x; - var y: number = point.y; + const point = new Point(10, 25); + const x: number = point.x; + const y: number = point.y; strictEqual(x, 10); strictEqual(y, 25); }); -- cgit v1.2.3