From: Carl Shapiro Date: Thu, 14 Feb 2013 23:38:57 +0000 (-0800) Subject: src/cmd/gc: fix some typos in the escape analysis comments X-Git-Tag: go1.1rc2~1020 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=817a3f39fd4c9d8825f3db1b8d7f624d6d53ff18;p=gostls13.git src/cmd/gc: fix some typos in the escape analysis comments R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7342044 --- diff --git a/src/cmd/gc/esc.c b/src/cmd/gc/esc.c index 1b065d433e..46c06d10e4 100644 --- a/src/cmd/gc/esc.c +++ b/src/cmd/gc/esc.c @@ -281,7 +281,7 @@ analyze(NodeList *all, int recursive) // print("escapes: %d e->dsts, %d edges\n", e->dstcount, e->edgecount); - // visit the updstream of each dst, mark address nodes with + // visit the upstream of each dst, mark address nodes with // addrescapes, mark parameters unsafe for(l = e->dsts; l; l=l->next) escflood(e, l->n); @@ -802,7 +802,7 @@ escassignfromtag(EscState *e, Strlit *note, NodeList *dsts, Node *src) // This is a bit messier than fortunate, pulled out of esc's big // switch for clarity. We either have the paramnodes, which may be -// connected to other things throug flows or we have the parameter type +// connected to other things through flows or we have the parameter type // nodes, which may be marked "noescape". Navigating the ast is slightly // different for methods vs plain functions and for imported vs // this-package