From b73171a60bd44851c0e55ebfb8a981a757bbdaa9 Mon Sep 17 00:00:00 2001 From: Shyam-Chen Date: Fri, 19 Apr 2024 16:23:09 +0800 Subject: [PATCH] fix: use process --- codes/typescript/modules/PrintUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codes/typescript/modules/PrintUtil.ts b/codes/typescript/modules/PrintUtil.ts index 5da0daadcd..2245e12fc9 100644 --- a/codes/typescript/modules/PrintUtil.ts +++ b/codes/typescript/modules/PrintUtil.ts @@ -78,7 +78,7 @@ function showTrunks(p: Trunk | null) { } showTrunks(p.prev); - console.log(p.str); + process.stdout.write(p.str); } /* 打印堆 */