diff options
author | Carl Shapiro <cshapiro@google.com> | 2013-02-14 15:38:57 -0800 |
---|---|---|
committer | Carl Shapiro <cshapiro@google.com> | 2013-02-14 15:38:57 -0800 |
commit | 6342e7597388c7d4ab63465410163e32be9527a7 (patch) | |
tree | ca3b3f2dbd3e7ae6f8e51cb59089696df40fbb44 /src/cmd | |
parent | 2c6d36188292b1612638e2b29f5f8f50adc1b22e (diff) | |
download | go-6342e7597388c7d4ab63465410163e32be9527a7.tar.gz |
src/cmd/gc: fix some typos in the escape analysis comments
R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7342044
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/gc/esc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/gc/esc.c b/src/cmd/gc/esc.c index 1b065d433..46c06d10e 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 |