From 07463c00fc0a9c1b347b77010e6f2e1a3f62ba33 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Tue, 22 Oct 2024 21:34:45 +0800 Subject: [PATCH] wordy --- compiler/semfields.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/semfields.nim b/compiler/semfields.nim index 7544f012f4..87b9b4145d 100644 --- a/compiler/semfields.nim +++ b/compiler/semfields.nim @@ -32,7 +32,7 @@ proc instFieldLoopBody(c: var TFieldInstCtx, n: PNode, forLoop: PNode): PNode = if ident.id == considerQuotedIdent(c.c, forLoop[0]).id: if c.leftPartOfAssign: localError(c.c.config, n.info, - "field variable '$1' is not allowed to use as a lvalue in a 'fields' loop" % [ident.s]) + "field variable '$1' is not allowed to be used as a lvalue in a 'fields' loop" % [ident.s]) let fieldName = if c.tupleType.isNil: c.field.name.s elif c.tupleType.n.isNil: "Field" & $c.tupleIndex else: c.tupleType.n[c.tupleIndex].sym.name.s @@ -43,7 +43,7 @@ proc instFieldLoopBody(c: var TFieldInstCtx, n: PNode, forLoop: PNode): PNode = if ident.id == considerQuotedIdent(c.c, forLoop[i]).id: if c.leftPartOfAssign: localError(c.c.config, n.info, - "field variable '$1' is not allowed to use as a lvalue in a 'fields' loop" % [ident.s]) + "field variable '$1' is not allowed to be used as a lvalue in a 'fields' loop" % [ident.s]) var call = forLoop[^2] var tupl = call[i+1-ord(c.replaceByFieldName)] if c.field.isNil: