mirror of
https://github.com/golang/go
synced 2024-11-11 22:20:22 -07:00
internal/walk: update comment for previous refactor
This commit is contained in:
parent
6bfbb4bded
commit
eec9c2328d
@ -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 New Issue
Block a user