Skip to content

Commit

Permalink
std/tasks: fix spelling (#19691) [backport]
Browse files Browse the repository at this point in the history
why aren't these not being caught by style check options?
--styleCheck:usages finds it.

Co-authored-by: flywind <[email protected]>
  • Loading branch information
arnetheduck and ringabout authored Apr 6, 2022
1 parent e649ddd commit cb6ce80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/std/tasks.nim
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ template checkIsolate(scratchAssignList: seq[NimNode], procParam, scratchDotExpr
let isolatedTemp = genSym(nskTemp, "isoTemp")
scratchAssignList.add newVarStmt(isolatedTemp, newCall(newidentNode("isolate"), procParam))
scratchAssignList.add newAssignment(scratchDotExpr,
newcall(newIdentNode("extract"), isolatedTemp))
newCall(newIdentNode("extract"), isolatedTemp))

template addAllNode(assignParam: NimNode, procParam: NimNode) =
let scratchDotExpr = newDotExpr(scratchIdent, formalParams[i][0])
Expand Down Expand Up @@ -154,7 +154,7 @@ macro toTask*(e: typed{nkCall | nkInfix | nkPrefix | nkPostfix | nkCommand | nkC
error("'toTask'ed function cannot have a 'typed' or 'untyped' parameter")
let
seqType = nnkBracketExpr.newTree(newIdentNode("seq"), param[1])
seqCallNode = newcall("@", e[i])
seqCallNode = newCall("@", e[i])
addAllNode(seqType, seqCallNode)
else:
addAllNode(param, e[i])
Expand Down

0 comments on commit cb6ce80

Please sign in to comment.