mirror of
https://github.com/golang/go
synced 2024-11-05 18:36:08 +00:00
internal/walk: update comment for previous refactor
This commit is contained in:
parent
6bfbb4bded
commit
eec9c2328d
1 changed files with 3 additions and 1 deletions
|
@ -168,7 +168,9 @@ func walkRange(nrange *ir.RangeStmt) ir.Node {
|
|||
|
||||
hit := nrange.Prealloc
|
||||
th := hit.Type()
|
||||
keysym := th.Field(0).Sym // depends on layout of iterator struct. See reflect.go:MapIterType
|
||||
// depends on layout of iterator struct.
|
||||
// See cmd/compile/internal/reflectdata/reflect.go:MapIterType
|
||||
keysym := th.Field(0).Sym
|
||||
elemsym := th.Field(1).Sym // ditto
|
||||
|
||||
fn := typecheck.LookupRuntime("mapiterinit")
|
||||
|
|
Loading…
Reference in a new issue