summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorBrian Wignall <BrianWignall@gmail.com>2019-11-28 02:30:55 -0500
committerMiran <narimiran@disroot.org>2019-11-28 08:30:55 +0100
commita7aeabb9d2c70a5d9bd89abf3eb08372d2c6d9d0 (patch)
treefcc8eac414002ab6378ae1f17d8414a5ded59c9b /compiler
parentfd85a5ae054ece9a1954428b135b1da00e410229 (diff)
downloadNim-a7aeabb9d2c70a5d9bd89abf3eb08372d2c6d9d0.tar.gz
[backport] Fix spelling typos (#12755)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/liftdestructors.nim2
-rw-r--r--compiler/semcall.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/liftdestructors.nim b/compiler/liftdestructors.nim
index 5ef62f531..3676aa0f7 100644
--- a/compiler/liftdestructors.nim
+++ b/compiler/liftdestructors.nim
@@ -477,7 +477,7 @@ proc ownedRefOp(c: var TLiftCtx; t: PType; body, x, y: PNode) =
 
 proc closureOp(c: var TLiftCtx; t: PType; body, x, y: PNode) =
   if c.kind == attachedDeepCopy:
-    # a big problem is that we don't know the enviroment's type here, so we
+    # a big problem is that we don't know the environment's type here, so we
     # have to go through some indirection; we delegate this to the codegen:
     let call = newNodeI(nkCall, c.info, 2)
     call.typ = t
diff --git a/compiler/semcall.nim b/compiler/semcall.nim
index be9d9ebde..504a9e0c1 100644
--- a/compiler/semcall.nim
+++ b/compiler/semcall.nim
@@ -304,7 +304,7 @@ proc getMsgDiagnostic(c: PContext, flags: TExprFlags, n, f: PNode): string =
       # in a concept, eg:
       #   ExplainedConcept {.explain.} = concept x
       #     x.foo is int
-      # We coudl use: `(c.config $ n.sons[1].info)` to get more context.
+      # We could use: `(c.config $ n.sons[1].info)` to get more context.
       discard
     else:
       typeHint = " for type " & getProcHeader(c.config, sym)