Fix spelling errors (#10379)

This commit is contained in:
Federico Ceratto 2019-01-19 15:01:27 +00:00 • committed by Miran
commit 095eaacf21
4 changed files with 23 additions and 23 deletions

View file

@ -230,7 +230,7 @@ proc semConv(c: PContext, n: PNode): PNode =
# special case to make MyObject(x = 3) produce a nicer error message:
if n[1].kind == nkExprEqExpr and
targetType.skipTypes(abstractPtrs).kind == tyObject:
localError(c.config, n.info, "object contruction uses ':', not '='")
localError(c.config, n.info, "object construction uses ':', not '='")
var op = semExprWithType(c, n.sons[1])
if targetType.isMetaType:
let final = inferWithMetatype(c, targetType, op, true)