summary refs log tree commit diff stats
path: root/lib/std/tasks.nim
diff options
context:
space:
mode:
authorJacek Sieka <arnetheduck@gmail.com>2022-04-06 20:28:37 +0200
committerGitHub <noreply@github.com>2022-04-06 20:28:37 +0200
commitcb6ce80cb8dcf21733b437606ada1dfff9884316 (patch)
tree38f093768f5c56bbbaee00ecec43d5184e133d11 /lib/std/tasks.nim
parente649ddd09ba0b1195163f456dbf6b1308affec37 (diff)
downloadNim-cb6ce80cb8dcf21733b437606ada1dfff9884316.tar.gz
std/tasks: fix spelling (#19691) [backport]
why aren't these not being caught by style check options?
--styleCheck:usages finds it.

Co-authored-by: flywind <xzsflywind@gmail.com>
Diffstat (limited to 'lib/std/tasks.nim')
-rw-r--r--lib/std/tasks.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/tasks.nim b/lib/std/tasks.nim
index e2ea5377f..dbe2e265b 100644
--- a/lib/std/tasks.nim
+++ b/lib/std/tasks.nim
@@ -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])
@@ -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])
'#n179'>179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256