cmd/internal/testing/stdlibsymbol: fix build error
The type for frontend.Symbol has changed since tests passed for
CL 300173, which caused build errors that are fixed.
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
@@ -93,7 +93,8 @@ func compareVersionsPage(path string) error {
for _, vs := range vl.Versions {
v := stdlib.VersionForTag(vs.Version)
versionToNameToSymbol[v] = map[string]*internal.UnitSymbol{}
- for _, s := range vs.Symbols {
+ for _, syms := range vs.Symbols {
+ for _, s := range syms {
if s.New {
versionToNameToSymbol[v][s.Name] = unitSymbol(s)
}
@@ -103,6 +104,7 @@ func compareVersionsPage(path string) error {
}
}
}
+ }
apiVersions, err := symbol.ParsePackageAPIInfo()
if err != nil {
return err
