From 907eb84dc23e11becee389f4e02cb7e453dca238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Wed, 28 Dec 2022 15:18:59 +0800 Subject: [PATCH] chore: update comments --- packages/compiler-sfc/src/compileScript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index 1b66e283c6a..e26cddc0ae9 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -1230,7 +1230,7 @@ export function compileScript( // last one, locate the end of the prev start = node.declarations[getLastIndex(i)].end! + startOffset } else { - // not last one, locate the start of the next + // not the last one, locate the start of the next end = node.declarations[i + 1].start! + startOffset } s.remove(start, end)