1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:34:40 -07:00

run go generate

This commit is contained in:
Jes Cok 2023-08-28 05:18:12 +00:00
parent 7fd3bf25ec
commit 2cccdd0305

View File

@ -81,7 +81,7 @@ func (ctxt *Context) instanceHash(orig Type, targs []Type) string {
h.typeList(targs)
}
return strings.Replace(buf.String(), " ", "#", -1) // ReplaceAll is not available in Go1.4
return strings.ReplaceAll(buf.String(), " ", "#")
}
// lookup returns an existing instantiation of orig with targs, if it exists.