summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhenesy <henesy.dev@gmail.com>2020-03-27 13:56:34 -0700
committerOri Bernstein <ori@eigenstate.org>2020-03-28 19:50:10 -0700
commit69d83a1be81a97e50f1b83a2cf327f96064f1152 (patch)
tree99c9568a38dea3ccb2ee8dbb2ffb245121c6c5bd
parente1e9167cc8b847dfb3b37df4dc041d20ac271010 (diff)
downloadmc-69d83a1be81a97e50f1b83a2cf327f96064f1152.tar.gz
Fix typo: s/intializer/initializer/g
-rw-r--r--parse/node.c2
-rw-r--r--parse/use.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/parse/node.c b/parse/node.c
index bf40143..b3cef6c 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -55,7 +55,7 @@ arraysz(Node *sz)
return 0;
n = fold(sz, 1);
if (exprop(n) != Olit)
- fatal(sz, "too much indirection when finding intializer. (initialization loop?)");
+ fatal(sz, "too much indirection when finding initializer. (initialization loop?)");
n = n->expr.args[0];
if (n->lit.littype != Lint)
diff --git a/parse/use.c b/parse/use.c
index b08aced..088e1e7 100644
--- a/parse/use.c
+++ b/parse/use.c
@@ -158,7 +158,7 @@ rducon(FILE *fd, Type *ut)
}
/* Writes the name and type of a variable,
- * but only writes its intializer for thing
+ * but only writes its initializer for thing
* we want to inline cross-file (currently,
* the only cross-file inline is generics) */
static void
@@ -397,7 +397,7 @@ tyunpickle(FILE *fd)
case Tyunres:
ty->name = unpickle(fd);
break;
- case Typaram:
+ case Typaram:
n = rdint(fd);
for (i = 0; i < n; i++)
rdtrait(fd, NULL, ty);